Skip to content

Commit

Permalink
Fix ABI generation and function encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgall committed May 3, 2024
1 parent b469d9a commit 9c2a67f
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/utils/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9c2a67f

Please sign in to comment.