Skip to content

Commit

Permalink
update conmment
Browse files Browse the repository at this point in the history
  • Loading branch information
MickWang committed Apr 25, 2024
1 parent 6949287 commit a204d74
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions store/zksync/withdrawals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit a204d74

Please sign in to comment.