Skip to content

Commit

Permalink
Fix funding the L3 accounts in case of fee token
Browse files Browse the repository at this point in the history
  • Loading branch information
gvladika committed Jun 19, 2024
1 parent 06fe680 commit e8e187b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/ethcommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions test-node.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e8e187b

Please sign in to comment.