From 9e53d34df93b71ee521047498ba7d56172be73fa Mon Sep 17 00:00:00 2001 From: petarTxFusion Date: Thu, 6 Jun 2024 22:32:48 +0200 Subject: [PATCH] refactor: refactor `isWithdrawFinalized` to use l2SharedBridge --- zksync2/account/wallet_l1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zksync2/account/wallet_l1.py b/zksync2/account/wallet_l1.py index 76be85e..fdc71ae 100644 --- a/zksync2/account/wallet_l1.py +++ b/zksync2/account/wallet_l1.py @@ -1192,7 +1192,7 @@ def is_withdrawal_finalized(self, withdraw_hash, index: int = 0): Web3.to_checksum_address(sender), abi=l2_shared_bridge_abi_default() ) l1_bridge = self._eth_web3.eth.contract( - Web3.to_checksum_address(l2_bridge.functions.l1Bridge().call()), + Web3.to_checksum_address(l2_bridge.functions.l1SharedBridge().call()), abi=l1_shared_bridge_abi_default(), )