Skip to content

Commit d751682

Browse files
ledanghuy1811quanpt239
authored andcommitted
feat: update test-evm-mapping to fit v0.50
1 parent 3f54249 commit d751682

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scripts/tests-0.42.1/local-node-tests.sh

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ oraid init --chain-id "$CHAIN_ID" "$MONIKER" --home $NODE_HOME &>$HIDE_LOGS
1919

2020
# 2s for fast test
2121
update_genesis '.app_state["gov"]["params"]["voting_period"]="2s"'
22+
update_genesis '.app_state["gov"]["params"]["expedited_voting_period"]="1.999999995s"'
2223

2324
oraid keys add $USER $ARGS 2>&1 | tee account.txt
2425
oraid keys add $USER-eth $ARGS --eth 2>&1 | tee account-eth.txt

scripts/tests-0.42.1/test-evm-cosmos-mapping.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ if [[ $evm_balance_int -ne $cosmos_balance ]] ; then
3838
echo "The evm addresses dont match. EVM cosmos mapping test failed"; exit 1
3939
fi
4040

41-
test balance change when cosmos address sends some coins to another address
41+
# test balance change when cosmos address sends some coins to another address
4242
oraid tx bank send $USER orai1kzkf6gttxqar9yrkxfe34ye4vg5v4m588ew7c9 1orai $ARGS > $HIDE_LOGS
43-
# evm balance should be 0
43+
# need to sleep 2s for tx completed
44+
sleep 2
4445
balance_hex=$(curl --no-progress-meter http://localhost:8545/ -X POST -H "Content-Type: application/json" --data '{"method":"eth_getBalance","params":["'"$actual_evm_address"'", "latest"],"id":1,"jsonrpc":"2.0"}' | jq '.result' | bc)
4546
balance_hex_no_prefix=${balance_hex#0x}
4647
balance_hex_no_prefix_upper=$(echo "$balance_hex_no_prefix" | tr '[:lower:]' '[:upper:]')

0 commit comments

Comments
 (0)