Make coins denoms case insensitive (#3092)
This commit is contained in:
committed by
Jack Zampolin
parent
eac7d6939d
commit
500fa2b694
@@ -21,7 +21,7 @@ func TestEncoding(t *testing.T) {
|
||||
sendMsg := MsgSend{
|
||||
From: addr1,
|
||||
To: addr2,
|
||||
Amount: sdk.Coins{sdk.NewCoin("testCoins", sdk.NewInt(100))},
|
||||
Amount: sdk.Coins{sdk.NewCoin("testcoins", sdk.NewInt(100))},
|
||||
}
|
||||
|
||||
// Construct transaction
|
||||
@@ -55,7 +55,7 @@ func TestEncoding(t *testing.T) {
|
||||
issueMsg := MsgIssue{
|
||||
Issuer: addr1,
|
||||
Receiver: addr2,
|
||||
Coin: sdk.Coin{"testCoin", sdk.NewInt(100)},
|
||||
Coin: sdk.NewCoin("testcoin", sdk.NewInt(100)),
|
||||
}
|
||||
|
||||
signBytes = issueMsg.GetSignBytes()
|
||||
|
||||
@@ -33,8 +33,8 @@ gaiacli keys add validator
|
||||
|
||||
# Add that key into the genesis.app_state.accounts array in the genesis file
|
||||
# NOTE: this command lets you set the number of coins. Make sure this account has some coins
|
||||
# with the genesis.app_state.stake.params.bond_denom denom, the default is STAKE
|
||||
gaiad add-genesis-account $(gaiacli keys show validator -a) 1000STAKE,1000validatorToken
|
||||
# with the genesis.app_state.stake.params.bond_denom denom, the default is stake
|
||||
gaiad add-genesis-account $(gaiacli keys show validator -a) 1000stake,1000validatortoken
|
||||
|
||||
# Generate the transaction that creates your validator
|
||||
gaiad gentx --name validator
|
||||
|
||||
Reference in New Issue
Block a user