fix claim search not returning claim values
This commit is contained in:
parent
deab868c53
commit
b1c090e28d
1 changed files with 10 additions and 8 deletions
|
@ -496,15 +496,17 @@ func (d *Client) Resolve(urls string) (*ResolveResponse, error) {
|
||||||
func (d *Client) ClaimSearch(claimName, claimID, txid *string, nout *uint) (*ClaimSearchResponse, error) {
|
func (d *Client) ClaimSearch(claimName, claimID, txid *string, nout *uint) (*ClaimSearchResponse, error) {
|
||||||
response := new(ClaimSearchResponse)
|
response := new(ClaimSearchResponse)
|
||||||
args := struct {
|
args := struct {
|
||||||
ClaimID *string `json:"claim_id,omitempty"`
|
ClaimID *string `json:"claim_id,omitempty"`
|
||||||
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))
|
||||||
|
|
Loading…
Add table
Reference in a new issue