From 1b58d627bdcb38db82758df897d803c536c422da Mon Sep 17 00:00:00 2001 From: c4605 Date: Sun, 25 Aug 2024 10:46:35 +0100 Subject: [PATCH] fix: time lock fetching code incorrect --- src/xlinkSdkUtils/timelockFromEVM.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xlinkSdkUtils/timelockFromEVM.ts b/src/xlinkSdkUtils/timelockFromEVM.ts index 4e031c7..398d85c 100644 --- a/src/xlinkSdkUtils/timelockFromEVM.ts +++ b/src/xlinkSdkUtils/timelockFromEVM.ts @@ -1,4 +1,4 @@ -import { Client, encodeFunctionData, zeroAddress, zeroHash } from "viem" +import { Client, encodeFunctionData, zeroAddress } from "viem" import { estimateGas, readContract } from "viem/actions" import { bridgeEndpointAbi } from "../evmUtils/contractAbi/bridgeEndpoint" import { bridgeTimeLockAbi } from "../evmUtils/contractAbi/bridgeTimeLock" @@ -88,7 +88,7 @@ export async function getTimeLockedAssetsFromEVM( abi: bridgeTimeLockAbi, address: timeLockCallInfo.timeLockContractAddress, functionName: "agreementsByUser", - args: [input.walletAddress, 0, info.tokenContractAddress, zeroHash], + args: [input.walletAddress, 0, info.tokenContractAddress, "0x"], }) if (agreementId === 0n) continue