Skip to content

Commit

Permalink
fix: pk notes
Browse files Browse the repository at this point in the history
  • Loading branch information
uF4No committed Aug 20, 2024
1 parent 0f7640a commit 8ec11ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion content/tutorials/how-to-send-l1-l2-transaction/10.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ Before continue, make sure you have the following:
WALLET_PRIVATE_KEY=0x..;
```
::callout{icon="i-heroicons-exclamation-triangle"}
Always use a separate wallet with no real funds for development.
Make sure your `.env` file is not pushed to an online repository by adding it to a `.gitignore` file.
::
## Step-by-step
Sending an L1->L2 transaction requires following these steps:
Expand All @@ -95,7 +100,7 @@ Sending an L1->L2 transaction requires following these steps:
```ts
const l1provider = new Provider(L1_RPC_ENDPOINT);
const l2provider = new Provider(L2_RPC_ENDPOINT);
const wallet = new Wallet(WALLET_PRIV_KEY, l2provider, l1provider);
const wallet = new Wallet(WALLET_PRIVATE_KEY, l2provider, l1provider);
```
1. Retrieve the current gas price on L1.
Expand Down

0 comments on commit 8ec11ab

Please sign in to comment.