From 5f876aaedaa6078df5f400e8581b56496663cc32 Mon Sep 17 00:00:00 2001
From: Evgenii Stratonikov <evgeniy@nspcc.ru>
Date: Wed, 25 Mar 2020 16:26:38 +0300
Subject: [PATCH] smartcontract: do not require pointer in MarshalYAML

It is a single byte anyway.
Now `contract init` works properly.
---
 pkg/smartcontract/param_type.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/smartcontract/param_type.go b/pkg/smartcontract/param_type.go
index a1082e99e..7623aa5d1 100644
--- a/pkg/smartcontract/param_type.go
+++ b/pkg/smartcontract/param_type.go
@@ -87,7 +87,7 @@ func (pt *ParamType) UnmarshalJSON(data []byte) error {
 }
 
 // MarshalYAML implements the YAML Marshaler interface.
-func (pt *ParamType) MarshalYAML() (interface{}, error) {
+func (pt ParamType) MarshalYAML() (interface{}, error) {
 	return pt.String(), nil
 }