oraichain / wasmd

Basic cosmos-sdk app with web assembly smart contracts
Other
3 stars 9 forks source link

Failed to run cmd oraid start: error invalid coin denomination: got orai, expected stake: invalid request #3

Open ledanghuy1811 opened 2 months ago

ledanghuy1811 commented 2 months ago

CHAIN_ID=${CHAIN_ID:-testing} USER=${USER:-tupt} MONIKER=${MONIKER:-node001} HIDE_LOGS="/dev/null"

PASSWORD=${PASSWORD:-$1}

rm -rf .oraid/

oraid init --chain-id "$CHAIN_ID" "$MONIKER" > $HIDE_LOGS

oraid keys add $USER --keyring-backend test 2>&1 | tee account.txt oraid keys add $USER-eth --keyring-backend test --eth 2>&1 | tee account-eth.txt oraid keys unsafe-export-eth-key $USER-eth --keyring-backend test 2>&1 | tee priv-eth.txt

hardcode the validator account for this instance

oraid genesis add-genesis-account $USER "100000000000000orai" --keyring-backend test oraid genesis add-genesis-account $USER-eth "100000000000000orai" --keyring-backend test oraid genesis add-genesis-account orai1kzkf6gttxqar9yrkxfe34ye4vg5v4m588ew7c9 "100000000000000orai" --keyring-backend test

submit a genesis validator tx

Workraround for https://github.com/cosmos/cosmos-sdk/issues/8251

oraid genesis gentx $USER "250000000orai" --chain-id="$CHAIN_ID" -y --keyring-backend test

oraid genesis collect-gentxs

oraid start


- But we got error "invalid coin denomination":
<img width="1173" alt="Screenshot 2024-09-05 at 16 31 47" src="https://github.com/user-attachments/assets/250b3c43-c011-4238-860e-0b46174767b4">
ledanghuy1811 commented 2 months ago

Fixed in #2 The error come up because we haven't customed our genesis state yet!