From a204d74cea11a533235d0e0e33c0361ce26ce468 Mon Sep 17 00:00:00 2001 From: MickWang <1244134672@qq.com> Date: Thu, 25 Apr 2024 16:46:32 +0800 Subject: [PATCH] update conmment --- store/zksync/withdrawals.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/store/zksync/withdrawals.ts b/store/zksync/withdrawals.ts index 9aa3a0f0..18fa6a39 100644 --- a/store/zksync/withdrawals.ts +++ b/store/zksync/withdrawals.ts @@ -48,17 +48,16 @@ export const useZkSyncWithdrawalsStore = defineStore("zkSyncWithdrawals", () => } /** - * 对于提到从链的提现: -* 条件1:查linea上zklink合约的isEthWithdrawalFinalized: + * for withdrawal to secondary chain: +* condition 1: call zklink contract's isEthWithdrawalFinalized on Linea * _l2BatchNumber * _l2MessageIndex getTransactionReceipt(novaTxHash) -* 条件2:查从链的zklink合约的totalBatchesExecuted,查出来的值必须要>=nova上的提现hash去查所在batch高度 - - 对于eth 提现需要满足 条件1和条件2, 对于erc20, 只需要满足条件2 +* condition 2:call zklink contract's totalBatchesExecuted on secondary chain, result >= l1batchnumber of the withdrawal transaction hash + for eth need both condition 1 and 2;, for erc20, only need condition2 * @param transactionHash * @returns */