smartcontract: do not require pointer in MarshalYAML
It is a single byte anyway. Now `contract init` works properly.
This commit is contained in:
parent
b52da3b928
commit
5f876aaeda
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue