From 924d920423c582f5b8e73df3a9b7bd28d2e553ae Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 4 Mar 2020 12:30:48 +0300 Subject: [PATCH] smartcontract: support JSON unmarshaling of Signature param --- pkg/smartcontract/param_context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/smartcontract/param_context.go b/pkg/smartcontract/param_context.go index 14f953f6b..498e4dc8c 100644 --- a/pkg/smartcontract/param_context.go +++ b/pkg/smartcontract/param_context.go @@ -137,7 +137,7 @@ func (p *Parameter) UnmarshalJSON(data []byte) (err error) { return } p.Value = boolean - case ByteArrayType, PublicKeyType: + case ByteArrayType, PublicKeyType, SignatureType: if err = json.Unmarshal(r.Value, &s); err != nil { return }