@@ -54,7 +54,7 @@ export const getSubmitWithdrawRequestHash = (
5454export interface WithdrawalAddressParams {
5555 depositoryAddress : string ;
5656 depositoryChainId : bigint ;
57- tokenId : bigint ;
57+ currency : string ;
5858 recipientAddress : string ;
5959 amount : bigint ;
6060 withdrawalNonce ?: number ;
@@ -65,7 +65,7 @@ export interface WithdrawalAddressParams {
6565 *
6666 * @param depositoryAddress the depository contract holding the funds on origin chain
6767 * @param depositoryChainId the hub chain id of the depository contract currently holding the funds
68- * @param tokenId the token id on the hub
68+ * @param currency the id of the currency as expressed on origin chain (string)
6969 * @param recipientAddress the address that will receive the withdrawn funds on destination chain
7070 * @param amount the balance to withdraw
7171 * @param blockNumber block number when the Oracle witnessed the balance
@@ -83,7 +83,7 @@ export function getWithdrawalAddress(
8383 [
8484 "address" ,
8585 "uint256" ,
86- "uint256 " ,
86+ "string " ,
8787 "address" ,
8888 "uint256" ,
8989 "uint256" ,
@@ -92,7 +92,7 @@ export function getWithdrawalAddress(
9292 [
9393 withdrawalParams . depositoryAddress as `0x${string } `,
9494 withdrawalParams . depositoryChainId ,
95- withdrawalParams . tokenId ,
95+ withdrawalParams . currency ,
9696 withdrawalParams . recipientAddress as `0x${string } `,
9797 withdrawalParams . amount ,
9898 withdrawalParams . blockNumber ,
0 commit comments