fix the bug about turning VoteOption byte to String

This commit is contained in:
xujiacheng 2018-07-19 19:56:23 +08:00
parent d2f70ec8af
commit 0471598c69
1 changed files with 3 additions and 3 deletions

View File

@ -167,11 +167,11 @@ func (pt *ProposalKind) UnmarshalJSON(data []byte) error {
// Turns VoteOption byte to String
func (pt ProposalKind) String() string {
switch pt {
case 0x00:
return "Text"
case 0x01:
return "ParameterChange"
return "Text"
case 0x02:
return "ParameterChange"
case 0x03:
return "SoftwareUpgrade"
default:
return ""