Skip to content

Release: v0.2.2

Compare
Choose a tag to compare
@rafalum rafalum released this 05 Dec 18:18
· 25 commits to main since this release

Minor update that fixes a bug in the StandardBridge contract. Further, it unifies the interface for the following functions in the CrossChainMessenger:

  • deposit_eth / deposit_erc20: deposits ETH/ERC20 to the account_l1
  • deposit_eth_to / deposit_erc20_to: deposits ETH/ERC20 to whoever is specified in the to argument
  • withdraw_eth / withdraw_erc20: withdraws ETH/ERC20 to the account_l2
  • withdraw_eth_to / withdraw_erc20_to: withdraws ETH/ERC20 to whoever is specified in the to argument

So if one wants to deposit ETH to the account_l2, the deposit_eth_to function has to be used with the to argument set to account_l2.address.