Skip to content

Commit

Permalink
fix: withdraw token bridge address
Browse files Browse the repository at this point in the history
  • Loading branch information
petarTxFusion authored and danijelTxFusion committed Jan 19, 2024
1 parent 8152104 commit 125048f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zksync2/account/wallet_l2.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ def withdraw(self, tx: WithdrawTransaction):
except:
pass
if l2_weth_token == ADDRESS_DEFAULT:
tx.bridge_address = self.get_l2_bridge_contracts().erc20
tx.bridge_address = self.get_l2_bridge_contracts().erc20.address
else:
tx.bridge_address = self.get_l2_bridge_contracts().weth
tx.bridge_address = self.get_l2_bridge_contracts().weth.address
bridge = self._zksync_web3.zksync.contract(
address=Web3.to_checksum_address(
Web3.to_checksum_address(Web3.to_checksum_address(tx.bridge_address))
Expand Down

0 comments on commit 125048f

Please sign in to comment.