Skip to content

Commit

Permalink
Merge pull request #1419 from irisnet/vincent/dec-output
Browse files Browse the repository at this point in the history
R4R: Fix decimal output format
  • Loading branch information
zhangyelong authored May 7, 2019
2 parents 1ef7871 + 1196f6d commit bf55403
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/gov/proposals.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,5 +407,5 @@ func (tr TallyResult) String() string {
Yes: %s
Abstain: %s
No: %s
NoWithVeto: %s`, tr.Yes, tr.Abstain, tr.No, tr.NoWithVeto)
NoWithVeto: %s`, tr.Yes.String(), tr.Abstain.String(), tr.No.String(), tr.NoWithVeto.String())
}
2 changes: 1 addition & 1 deletion modules/slashing/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (p Params) String() string {
Slash Fraction DoubleSign: %s
Slash Fraction Downtime: %s
Slash Fraction Censorship: %s`,
p.MaxEvidenceAge, p.SignedBlocksWindow, p.MinSignedPerWindow,
p.MaxEvidenceAge, p.SignedBlocksWindow, p.MinSignedPerWindow.String(),
p.DoubleSignJailDuration, p.DowntimeJailDuration,
p.CensorshipJailDuration, p.SlashFractionDoubleSign.String(),
p.SlashFractionDowntime.String(), p.SlashFractionCensorship.String())
Expand Down

0 comments on commit bf55403

Please sign in to comment.