Skip to content

Commit

Permalink
api: fix TPoolResp marshalling
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Aug 28, 2024
1 parent 84e1439 commit 4988d63
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,16 @@ func (je *JSONErrors) UnmarshalJSON(b []byte) error {
return nil
}

// MarshalText implements test.Marshaler
func (tr TPoolResp) MarshalText() ([]byte, error) {
return types.Currency(tr).MarshalText()
}

// UnmarshalText implements test.Unmarshaler
func (tr *TPoolResp) UnmarshalText(b []byte) error {
return (*types.Currency)(tr).UnmarshalText(b)
}

// SetAcceptingContracts sets the AcceptingContracts field of the request
func SetAcceptingContracts(value bool) Setting {
return func(v map[string]any) {
Expand Down

0 comments on commit 4988d63

Please sign in to comment.