From 9286319f036a0c404dc68bed956370f92613541e Mon Sep 17 00:00:00 2001 From: petarTxFusion Date: Fri, 19 Jan 2024 16:36:28 +0100 Subject: [PATCH] fix: `withdraw` bridge address --- zksync2/account/wallet_l2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zksync2/account/wallet_l2.py b/zksync2/account/wallet_l2.py index 0270755..abde961 100644 --- a/zksync2/account/wallet_l2.py +++ b/zksync2/account/wallet_l2.py @@ -155,7 +155,7 @@ def withdraw(self, tx: WithdrawTransaction): else: tx.bridge_address = self.get_l2_bridge_contracts().weth bridge = self._zksync_web3.zksync.contract( - address=Web3.to_checksum_address(tx.bridge_address), + address=Web3.to_checksum_address(Web3.to_checksum_address(tx.bridge_address)), abi=l2_bridge_abi_default(), ) transaction = bridge.functions.withdraw(