fix claim search not returning claim values

This commit is contained in:
Niko Storni 2019-10-03 22:50:07 +02:00
parent deab868c53
commit b1c090e28d

View file

@ -500,11 +500,13 @@ func (d *Client) ClaimSearch(claimName, claimID, txid *string, nout *uint) (*Cla
TXID *string `json:"txid,omitempty"` TXID *string `json:"txid,omitempty"`
Nout *uint `json:"nout,omitempty"` Nout *uint `json:"nout,omitempty"`
Name *string `json:"name,omitempty"` Name *string `json:"name,omitempty"`
IncludeProtobuf bool `json:"include_protobuf"`
}{ }{
ClaimID: claimID, ClaimID: claimID,
TXID: txid, TXID: txid,
Nout: nout, Nout: nout,
Name: claimName, Name: claimName,
IncludeProtobuf: true,
} }
structs.DefaultTagName = "json" structs.DefaultTagName = "json"
return response, d.call(response, "claim_search", structs.Map(args)) return response, d.call(response, "claim_search", structs.Map(args))