From aaf5d0f85b56092699c6b1440721a6c6d48d33e1 Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Wed, 30 Oct 2024 15:30:04 +0530 Subject: [PATCH] Add exports for asset addresses before performing swaps --- testnet-nitro-node.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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: