Skip to content

Commit

Permalink
small lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Oct 12, 2023
1 parent 4c83c8d commit 1c4a950
Show file tree
Hide file tree
Showing 9 changed files with 249 additions and 161 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"publish:local:ensjs": "yalc publish packages/ensjs --push --up"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.15.0",
"@typescript-eslint/parser": "^5.15.0",
"eslint": "^8.11.0",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"eslint": "^8.51.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^16.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/ensjs/src/functions/public/getName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const decode = async (
functionName: 'reverse',
args: passthrough.args,
address: passthrough.address,
})
}) as BaseError
}
const result = decodeFunctionResult({
abi: universalResolverReverseSnippet,
Expand Down
2 changes: 1 addition & 1 deletion packages/ensjs/src/functions/public/getRecords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const decode = async <TParams extends GetRecordsParameters>(
client,
contract: 'ensUniversalResolver',
}),
})
}) as BaseError
}
const result = decodeFunctionResult({
abi: universalResolverResolveArraySnippet,
Expand Down
2 changes: 1 addition & 1 deletion packages/ensjs/src/functions/public/getResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const decode = async (
functionName: 'findResolver',
args: passthrough.args,
address: passthrough.address,
})
}) as BaseError
const response = decodeFunctionResult({
abi: universalResolverFindResolverSnippet,
functionName: 'findResolver',
Expand Down
2 changes: 1 addition & 1 deletion packages/ensjs/src/functions/public/getWrapperData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const decode = async (
functionName: 'getData',
args: passthrough.args,
address: passthrough.address,
})
}) as BaseError
const [owner, fuses, expiry] = decodeFunctionResult({
abi: nameWrapperGetDataSnippet,
functionName: 'getData',
Expand Down
2 changes: 1 addition & 1 deletion packages/ensjs/src/functions/public/getWrapperName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const decode = async (
functionName: 'names',
args: passthrough.args,
address: passthrough.address,
})
}) as BaseError
const result = decodeFunctionResult({
abi: nameWrapperNamesSnippet,
functionName: 'names',
Expand Down
2 changes: 1 addition & 1 deletion packages/ensjs/src/functions/public/multicallWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const decode = async (
abi: multicallTryAggregateSnippet,
functionName: 'tryAggregate',
args: [],
})
}) as BaseError
}
const result = decodeFunctionResult({
abi: multicallTryAggregateSnippet,
Expand Down
2 changes: 1 addition & 1 deletion packages/ensjs/src/functions/public/universalWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const decode = async (
functionName: 'resolve',
args: passthrough.args,
address: passthrough.address,
})
}) as BaseError
}

const result = decodeFunctionResult({
Expand Down
Loading

0 comments on commit 1c4a950

Please sign in to comment.