From 09c756b2134b1b85deb133437ce54935a530575e Mon Sep 17 00:00:00 2001 From: Reece Williams Date: Fri, 16 Feb 2024 21:40:25 -0600 Subject: [PATCH] fix: bech32 convert in test_node.sh as well --- simapp/scripts/test_node.sh | 6 +++--- spawn/file_content.go | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/simapp/scripts/test_node.sh b/simapp/scripts/test_node.sh index d17c03f7..b7b7cbb7 100644 --- a/simapp/scripts/test_node.sh +++ b/simapp/scripts/test_node.sh @@ -57,9 +57,9 @@ from_scratch () { echo $mnemonic | BINARY keys add $key --keyring-backend $KEYRING --algo $KEYALGO --recover } - # cosmos1efd63aw40lxf3n4mhf7dzhjkr453axur6cpk92 + # wasm1efd63aw40lxf3n4mhf7dzhjkr453axursysrvp add_key $KEY "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry" - # cosmos1hj5fveer5cjtn4wd6wstzugjfdxzl0xpxvjjvr + # wasm1hj5fveer5cjtn4wd6wstzugjfdxzl0xpvsr89g add_key $KEY2 "wealth flavor believe regret funny network recall kiss grape useless pepper cram hint member few certain unveil rather brick bargain curious require crowd raise" # chain initial setup @@ -96,7 +96,7 @@ from_scratch () { update_test_genesis '.app_state["tokenfactory"]["params"]["denom_creation_fee"]=[]' update_test_genesis '.app_state["tokenfactory"]["params"]["denom_creation_gas_consume"]=100000' # poa - update_test_genesis '.app_state["poa"]["params"]["admins"]=["cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn"]' + update_test_genesis '.app_state["poa"]["params"]["admins"]=["wasm10d07y265gmmuvt4z0w9aw880jnsr700js7zslc"]' # Allocate genesis accounts BINARY genesis add-genesis-account $KEY 10000000$DENOM,900test --keyring-backend $KEYRING diff --git a/spawn/file_content.go b/spawn/file_content.go index b98dd6c3..d2d2b279 100644 --- a/spawn/file_content.go +++ b/spawn/file_content.go @@ -80,6 +80,8 @@ func (fc *FileContent) ReplaceTestNodeScript(cfg *NewChainConfig) { if fc.IsPath(path.Join("scripts", "test_node.sh")) { fc.ReplaceAll("export BINARY=${BINARY:-wasmd}", fmt.Sprintf("export BINARY=${BINARY:-%s}", cfg.BinDaemon)) fc.ReplaceAll("export DENOM=${DENOM:-token}", fmt.Sprintf("export DENOM=${DENOM:-%s}", cfg.Denom)) + + fc.FindAndReplaceAddressBech32("wasm", cfg.Bech32Prefix) } }