zksync-sdk / zksync-ethers

zksync-ethers is an ethers.js library adapted to work with the ZKsync Era.
Apache License 2.0
24 stars 29 forks source link

fix: make weth bridge addresses optional #190

Closed Romsters closed 4 months ago

Romsters commented 4 months ago

What :computer:

Use erc20 bridge addresses if weth bridge addresses are not present.

Why :hand:

Currently weth bridge addresses are required, and getL1BridgeContracts/getL2BridgeContracts function fails.

Evidence :camera:

Include screenshots, screen recordings, or console output here demonstrating that your changes work as intended

Notes :memo:

This should fix deposits to the chains with custom base token.

github-actions[bot] commented 4 months ago

:tada: This PR is included in version 5.9.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: