Skip to content

Commit

Permalink
fix: remove omitting of address bytes in function param encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
saadahmsiddiqui committed Oct 28, 2024
1 parent 6ba1c2b commit 6b2982d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/evm/src/utils/genericTransferHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export function createGenericCallDepositData<
functionParams as unknown as Array<unknown>,
);
const funcSig = funcData.substring(0, 10);
/** 0x (2) + function signature (8) + first param which is always set to depositer by relayer (64) */
const funcParamEncoded = funcData.substring(74);
/** 0x (2) + function signature (8) */
const funcParamEncoded = funcData.substring(10);

const funcSigLen = getZeroPaddedLength(funcSig, 2);
const contractAddrLen = getZeroPaddedLength(contractAddress, 1);
Expand Down

0 comments on commit 6b2982d

Please sign in to comment.