fix: time lock fetching code incorrect

This commit is contained in:
c4605
2024-08-25 10:46:35 +01:00
parent b1cc07acc1
commit 1b58d627bd

View File

@@ -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