Merge pull request #792 from nspcc-dev/fix/deploy

smartcontract: do not require pointer in MarshalYAML
This commit is contained in:
Roman Khimov 2020-03-25 16:36:34 +03:00 committed by GitHub
commit 4f26064aab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ func (pt *ParamType) UnmarshalJSON(data []byte) error {
} }
// MarshalYAML implements the YAML Marshaler interface. // MarshalYAML implements the YAML Marshaler interface.
func (pt *ParamType) MarshalYAML() (interface{}, error) { func (pt ParamType) MarshalYAML() (interface{}, error) {
return pt.String(), nil return pt.String(), nil
} }