From e8e187b4dced1083e34b8109753b40f18589d0f4 Mon Sep 17 00:00:00 2001 From: Goran Vladika Date: Wed, 19 Jun 2024 19:04:41 +0200 Subject: [PATCH] Fix funding the L3 accounts in case of fee token --- scripts/ethcommands.ts | 2 +- test-node.bash | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/ethcommands.ts b/scripts/ethcommands.ts index 1f341ed5..d1bc5147 100644 --- a/scripts/ethcommands.ts +++ b/scripts/ethcommands.ts @@ -82,7 +82,7 @@ async function bridgeNativeToken(argv: any, parentChainUrl: string, chainUrl: st const sleep = (ms: number) => new Promise(r => setTimeout(r, ms)); while (true) { const balance = await bridger.getBalance() - if (balance.gte(depositAmount)) { + if (balance.gte(0)) { return } await sleep(100) diff --git a/test-node.bash b/test-node.bash index cec74638..04778eca 100755 --- a/test-node.bash +++ b/test-node.bash @@ -463,9 +463,9 @@ if $force_init; then echo == Fund L3 accounts if $l3_custom_fee_token; then - docker compose run scripts bridge-native-token-to-l3 --amount 5000 --from user_token_bridge_deployer --wait - docker compose run scripts send-l3 --ethamount 5 --from user_token_bridge_deployer --wait - docker compose run scripts send-l3 --ethamount 5 --from user_token_bridge_deployer --to "key_0x$devprivkey" --wait + docker compose run scripts bridge-native-token-to-l3 --amount 5000 --from user_fee_token_deployer --wait + docker compose run scripts send-l3 --ethamount 5 --from user_fee_token_deployer --wait + docker compose run scripts send-l3 --ethamount 5 --from user_fee_token_deployer --to "key_0x$devprivkey" --wait else docker compose run scripts bridge-to-l3 --ethamount 50000 --wait docker compose run scripts bridge-to-l3 --ethamount 500 --wait --from "key_0x$devprivkey"