Skip to content

Commit 58b352e

Browse files
committed
fix: valid-typeof rule
1 parent c3a883f commit 58b352e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/nano_contracts/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ export const validateBlueprintMethodArgs = async (blueprintId, method, args): Pr
189189
}
190190
break;
191191
default:
192+
// eslint-disable-next-line valid-typeof -- This rule is not suited for dynamic comparisons such as this one
192193
if (arg.type !== typeof args[index]) {
193194
throw new NanoContractTransactionError(
194195
`Expects argument number ${index + 1} type ${arg.type} but received type ${typeof args[index]}.`

0 commit comments

Comments
 (0)