smartcontract: support JSON unmarshaling of Signature param

This commit is contained in:
Evgenii Stratonikov 2020-03-04 12:30:48 +03:00
parent 7eaeb18f18
commit 924d920423

View file

@ -137,7 +137,7 @@ func (p *Parameter) UnmarshalJSON(data []byte) (err error) {
return return
} }
p.Value = boolean p.Value = boolean
case ByteArrayType, PublicKeyType: case ByteArrayType, PublicKeyType, SignatureType:
if err = json.Unmarshal(r.Value, &s); err != nil { if err = json.Unmarshal(r.Value, &s); err != nil {
return return
} }