fixed proposaltype string bug (#1829)

* fixed proposaltype string bug
This commit is contained in:
Jae Kwon 2018-07-25 18:37:34 -07:00 committed by GitHub
parent 46abe9f8e0
commit a393f80cd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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:
case ProposalTypeText:
return "Text"
case 0x01:
case ProposalTypeParameterChange:
return "ParameterChange"
case 0x02:
case ProposalTypeSoftwareUpgrade:
return "SoftwareUpgrade"
default:
return ""