Skip to content

Commit

Permalink
fix: bech32 convert in test_node.sh as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Feb 17, 2024
1 parent a849e02 commit 09c756b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions simapp/scripts/test_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions spawn/file_content.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 09c756b

Please sign in to comment.