Merge PR #3394: Update staking string types

This commit is contained in:
frog power 4000 2019-01-25 06:12:04 -05:00 committed by Christopher Goes
parent dc75eb4eb8
commit 6b02e08160
2 changed files with 7 additions and 7 deletions

View File

@ -78,10 +78,10 @@ func DefaultParams() Params {
// String returns a human readable string representation of the parameters.
func (p Params) String() string {
return fmt.Sprintf(`Params:
Unbonding Time: %s)
Max Validators: %d)
Max Entries: %d)
Bonded Coin Denomination: %s`, p.UnbondingTime,
Unbonding Time: %s
Max Validators: %d
Max Entries: %d
Bonded Coin Denom: %s`, p.UnbondingTime,
p.MaxValidators, p.MaxEntries, p.BondDenom)
}

View File

@ -71,10 +71,10 @@ func (p Pool) bondedTokensToNotBonded(bondedTokens sdk.Int) Pool {
// String returns a human readable string representation of a pool.
func (p Pool) String() string {
return fmt.Sprintf(`Pool:
Loose Tokens: %s
Loose Tokens: %s
Bonded Tokens: %s
Token Supply: %s
Bonded Ratio: %v`, p.NotBondedTokens,
Token Supply: %s
Bonded Ratio: %v`, p.NotBondedTokens,
p.BondedTokens, p.TokenSupply(),
p.BondedRatio())
}