Skip to content

Commit

Permalink
Add funding logic to erc721 deploy script (#1429)
Browse files Browse the repository at this point in the history
* Fix funding logic for 721

* Fix fwd compat to use seiv2
  • Loading branch information
philipsu522 authored and udpatil committed Mar 26, 2024
1 parent 713ae0a commit 09260ad
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/compatiblity_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:

- name: Check Latest Dependencies
run: |
git clone -b evm https://github.com/sei-protocol/sei-cosmos.git
git clone -b evm https://github.com/sei-protocol/sei-tendermint.git
git clone -b seiv2 https://github.com/sei-protocol/sei-cosmos.git
git clone -b seiv2 https://github.com/sei-protocol/sei-tendermint.git
git clone https://github.com/sei-protocol/sei-iavl.git
git clone https://github.com/sei-protocol/go-ethereum.git
go mod edit -replace github.com/cosmos/iavl=./sei-iavl
Expand Down
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 09260ad

Please sign in to comment.