Add instruction to ensure token balance for ledger channel creation

This commit is contained in:
Prathamesh Musale 2024-10-21 18:06:58 +05:30
parent 169c01c82f
commit f0075244de

View File

@ -213,7 +213,7 @@ Create a ledger channel with the bridge on L1 which is mirrored on L2
export ASSET_ADDRESS_2=$(jq -r --arg chainId "$CHAIN_ID" '.[$chainId][0].contracts.TestToken2.address' assets.json) export ASSET_ADDRESS_2=$(jq -r --arg chainId "$CHAIN_ID" '.[$chainId][0].contracts.TestToken2.address' assets.json)
``` ```
* Check that check that you have no existing channels on L1 or L2: * Check that you have no existing channels on L1 or L2:
```bash ```bash
laconic-so deployment --dir l1-nitro-deployment exec nitro-rpc-client "nitro-rpc-client get-all-ledger-channels -p 4005 -h nitro-node" laconic-so deployment --dir l1-nitro-deployment exec nitro-rpc-client "nitro-rpc-client get-all-ledger-channels -p 4005 -h nitro-node"
@ -223,6 +223,8 @@ Create a ledger channel with the bridge on L1 which is mirrored on L2
# [] # []
``` ```
* Ensure that your account has enough balance of tokens from `assets.json`
* Create a ledger channel between your L1 Nitro node and Bridge with custom asset: * Create a ledger channel between your L1 Nitro node and Bridge with custom asset:
```bash ```bash