Skip to content

Commit

Permalink
fix encoding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
saadahmsiddiqui committed Oct 15, 2024
1 parent c53c19d commit 79a9287
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/evm/src/utils/assetTransferHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ export function createERC1155DepositData(depositParams: SemiFungibleAssetDeposit
destination.parachainId,
);

const encodedData = defaultAbiCoder.encode(['uint[]', 'uint[]'], [tokenIds, amounts]);
return hexlify(concat([arrayify(encodedData), recipientAddressSerialized]));
const encodedData = defaultAbiCoder.encode(
['uint[]', 'uint[]', 'bytes', 'bytes'],
[tokenIds, amounts, recipientAddressSerialized, '0x'],
);

return encodedData;
}

0 comments on commit 79a9287

Please sign in to comment.