diff --git a/testnet-nitro-node.md b/testnet-nitro-node.md index 7abeae4..ecb7626 100644 --- a/testnet-nitro-node.md +++ b/testnet-nitro-node.md @@ -623,6 +623,16 @@ Perform swaps using a swap channel created with another Nitro node over the mirr ### Performing swaps +* Ensure that environment variables for asset addresses are set: + + ```bash + export GETH_CHAIN_ID="1212" + + # Get asset addresses from assets.json file + export ASSET_ADDRESS_1=$(jq -r --arg chainId "$GETH_CHAIN_ID" '.[$chainId][0].contracts.TestToken.address' assets.json) + export ASSET_ADDRESS_2=$(jq -r --arg chainId "$GETH_CHAIN_ID" '.[$chainId][0].contracts.TestToken2.address' assets.json) + ``` + * Get all active swap channels for a specific mirrored ledger channel * To get mirrored ledger channels: