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 Ethan Buchman
parent 8f05d052f2
commit 77d02e348e
1 changed files with 3 additions and 3 deletions

View File

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