Merge PR #3286: Print out sdk.AccAddress.String() instead of hex
This commit is contained in:
committed by
Christopher Goes
parent
78a21353da
commit
e4efb8da8a
@@ -178,8 +178,8 @@ func accountInGenesis(genesisState app.GenesisState, key sdk.AccAddress, coins s
|
||||
// Ensure account contains enough funds of default bond denom
|
||||
if coins.AmountOf(bondDenom).GT(acc.Coins.AmountOf(bondDenom)) {
|
||||
return fmt.Errorf(
|
||||
"Account %v is in genesis, but the only has %v%v available to stake, not %v%v",
|
||||
key, acc.Coins.AmountOf(bondDenom), bondDenom, coins.AmountOf(bondDenom), bondDenom,
|
||||
"account %v is in genesis, but it only has %v%v available to stake, not %v%v",
|
||||
key.String(), acc.Coins.AmountOf(bondDenom), bondDenom, coins.AmountOf(bondDenom), bondDenom,
|
||||
)
|
||||
}
|
||||
accountIsInGenesis = true
|
||||
@@ -191,7 +191,7 @@ func accountInGenesis(genesisState app.GenesisState, key sdk.AccAddress, coins s
|
||||
return nil
|
||||
}
|
||||
|
||||
return fmt.Errorf("Account %s in not in the app_state.accounts array of genesis.json", key)
|
||||
return fmt.Errorf("account %s in not in the app_state.accounts array of genesis.json", key)
|
||||
}
|
||||
|
||||
func prepareFlagsForTxCreateValidator(config *cfg.Config, nodeID, ip, chainID string,
|
||||
|
||||
Reference in New Issue
Block a user