Skip to content

Commit

Permalink
Fetch native token address from config file
Browse files Browse the repository at this point in the history
  • Loading branch information
gvladika committed Nov 6, 2023
1 parent 5e0b8f2 commit 5f6a418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test-node.bash
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ if $force_init; then

echo == Fund L3 accounts
if $l3_custom_fee_token; then
nativeTokenAddress=`docker-compose run scripts create-erc20 --deployer user_fee_token_deployer --mintTo user_token_bridge_deployer | tail -n 1 | awk '{ print $NF }'`
docker-compose run scripts bridge-native-token-to-l3 --token $nativeTokenAddress --amount 50000 --from user_token_bridge_deployer --wait
native_token=`docker-compose run --entrypoint sh poster -c "jq -r '.[0].rollup[\"native-token\"]' /config/deployed_l3_chain_info.json | tail -n 1 | tr -d '\r\n'"`
docker-compose run scripts bridge-native-token-to-l3 --token $native_token --amount 50000 --from user_token_bridge_deployer --wait
docker-compose run scripts send-l3 --ethamount 500 --from user_token_bridge_deployer --wait
docker-compose run scripts send-l3 --ethamount 500 --from user_token_bridge_deployer --to "key_0x$devprivkey" --wait
else
Expand Down

0 comments on commit 5f6a418

Please sign in to comment.