smartcontract: do not require pointer in MarshalYAML

It is a single byte anyway.
Now `contract init` works properly.
This commit is contained in:
Evgenii Stratonikov 2020-03-25 16:26:38 +03:00
parent b52da3b928
commit 5f876aaeda

View file

@ -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
}