Skip to content

Commit

Permalink
fixed ssi genesis parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
arnabghose997 committed Nov 6, 2023
1 parent 36416aa commit 915af78
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions localnetsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ BINARY=hid-noded
# Check if the binary is installed
${BINARY} &> /dev/null

CHAINID=hidnode

RET_VAL=$?
if [ ${RET_VAL} -ne 0 ]; then
echo "hid-noded binary is not installed in your system."
Expand All @@ -19,7 +21,7 @@ rm -rf $HOME/.hid-node/
mkdir $HOME/.hid-node

# Init node
hid-noded init --chain-id=hidnode node1 --home=$HOME/.hid-node
hid-noded init --chain-id=$CHAINID node1 --home=$HOME/.hid-node

# Change hid-node config
hid-noded configure min-gas-prices 0uhid
Expand All @@ -38,14 +40,14 @@ cat $HOME/.hid-node/config/genesis.json | jq '.app_state["gov"]["deposit_params"
cat $HOME/.hid-node/config/genesis.json | jq '.app_state["gov"]["voting_params"]["voting_period"]="50s"' > $HOME/.hid-node/config/tmp_genesis.json && mv $HOME/.hid-node/config/tmp_genesis.json $HOME/.hid-node/config/genesis.json

# update ssi genesis
cat $HOME/.hid-node/config/genesis.json | jq '.app_state["ssi"]["chain_namespace"]="devnet"' > $HOME/.hid-node/config/tmp_genesis.json && mv $HOME/.hid-node/config/tmp_genesis.json $HOME/.hid-node/config/genesis.json
cat $HOME/.hid-node/config/genesis.json | jq '.app_state["ssi"]["chainNamespace"]="devnet"' > $HOME/.hid-node/config/tmp_genesis.json && mv $HOME/.hid-node/config/tmp_genesis.json $HOME/.hid-node/config/genesis.json

# update mint genesis
cat $HOME/.hid-node/config/genesis.json | jq '.app_state["mint"]["params"]["mint_denom"]="uhid"' > $HOME/.hid-node/config/tmp_genesis.json && mv $HOME/.hid-node/config/tmp_genesis.json $HOME/.hid-node/config/genesis.json

# create validator node with tokens
hid-noded add-genesis-account $(hid-noded keys show node1 -a --keyring-backend=test --home=$HOME/.hid-node) 500000000000000000uhid --home=$HOME/.hid-node --keyring-backend test
hid-noded gentx node1 50000000000000000uhid --keyring-backend=test --home=$HOME/.hid-node --chain-id=hidnode
hid-noded gentx node1 50000000000000000uhid --keyring-backend=test --home=$HOME/.hid-node --chain-id=$CHAINID
hid-noded collect-gentxs --home=$HOME/.hid-node

# change app.toml values
Expand Down

0 comments on commit 915af78

Please sign in to comment.