Skip to content

Commit

Permalink
Fix funding logic for 721
Browse files Browse the repository at this point in the history
  • Loading branch information
philipsu522 committed Mar 12, 2024
1 parent 21b0e6c commit 2ae22ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions loadtest/contracts/deploy_erc20.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ACCOUNT="0xF87A299e6bC7bEba58dbBe5a5Aa21d49bCD16D52"
BALANCE=$(cast balance $ACCOUNT --rpc-url "$evm_endpoint")
if (( $(echo "$BALANCE < $THRESHOLD" | bc -l) )); then
printf "12345678\n" | ~/go/bin/seid tx evm send $ACCOUNT 100000000000000000000 --from admin --evm-rpc "$evm_endpoint"
sleep 3
fi
cd loadtest/contracts/evm || exit 1

Expand Down
9 changes: 9 additions & 0 deletions loadtest/contracts/deploy_erc721.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@

evm_endpoint=$1

# first fund account if necessary
THRESHOLD=100000000000000000000 # 100 Eth
ACCOUNT="0xF87A299e6bC7bEba58dbBe5a5Aa21d49bCD16D52"
BALANCE=$(cast balance $ACCOUNT --rpc-url "$evm_endpoint")
if (( $(echo "$BALANCE < $THRESHOLD" | bc -l) )); then
printf "12345678\n" | ~/go/bin/seid tx evm send $ACCOUNT 100000000000000000000 --from admin --evm-rpc "$evm_endpoint"
sleep 3
fi

cd loadtest/contracts/evm || exit 1

./setup.sh > /dev/null
Expand Down

0 comments on commit 2ae22ea

Please sign in to comment.