diff --git a/src/utils/crypto.ts b/src/utils/crypto.ts index a9196af3a9..979fd8bbb5 100644 --- a/src/utils/crypto.ts +++ b/src/utils/crypto.ts @@ -73,7 +73,7 @@ export const encodeFunction = ( const abi = [ { - inputs: parseAbiParameters(_functionSignature), + inputs: _functionSignature ? parseAbiParameters(_functionSignature) : [], name: _functionName, type: 'function', },