diff --git a/src/utils/crypto.ts b/src/utils/crypto.ts index 80ce8b4099..a9196af3a9 100644 --- a/src/utils/crypto.ts +++ b/src/utils/crypto.ts @@ -71,11 +71,20 @@ export const encodeFunction = ( } }); - return encodeFunctionData({ - functionName: _functionName, + const abi = [ + { + inputs: parseAbiParameters(_functionSignature), + name: _functionName, + type: 'function', + }, + ]; + + const functionData = encodeFunctionData({ args: parametersFixedWithBool, - abi: parseAbiParameters(_functionSignature || ''), + abi, }); + + return functionData; }; export function isMultiSigTx(transaction: ActivityTransactionType): boolean {