Skip to content

Commit

Permalink
Update packages/contract-deposit/README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Mahsa Moosavi <[email protected]>
  • Loading branch information
Jason-W123 and mahsamoosavi authored Jul 23, 2024
1 parent b0347c9 commit 19216a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contract-deposit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ It will deposit funds to l2 via a l1 contract, and because the inbox contract wi
this tutorial shows how to control the alias address on l2 via its l1 contract address.

This tutorial is just used to simply show how l1 contract controls its l2 alias and transfer its l2 alias funds to other address, if you want to use it as a tool, we suggest you to use our [Funds Recovery Tool](https://github.com/OffchainLabs/arbitrum-funds-recovery-tool).

This tutorial demonstrates depositing funds to L2 using an L1 contract. Since the Inbox contract changes the sender address if it's a contract [(a.k.a address aliasing)](https://docs.arbitrum.io/how-arbitrum-works/arbos/l1-l2-messaging#address-aliasing), it explains how to manage the new L2 address using the L1 contract address. It's a basic example of how an L1 contract controls its L2 alias and transfers its alias funds to another address. For practical use, we recommend our [funds recovery tool]((https://github.com/OffchainLabs/arbitrum-funds-recovery-tool)).
The script and contracts demonstrate how to interact with Arbitrum's core bridge contracts to create these retryable messages, how to calculate and forward appropriate fees from L1 to L2, and how to use Arbitrum's L1-to-L2 message [address aliasing](https://developer.offchainlabs.com/docs/l1_l2_messages#address-aliasing).

See [./exec.js](./scripts/exec.js) for inline explanation.
Expand Down

0 comments on commit 19216a0

Please sign in to comment.