Merge pull request #1757 from irisnet/jiacheng/develop
x/gov: fix the bug about turning VoteOption byte to String
This commit is contained in:
commit
7dd0e3fdae
|
@ -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 ""
|
||||
|
|
Loading…
Reference in New Issue