Skip to content

Commit

Permalink
fix claims resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
nikooo777 committed Aug 21, 2024
1 parent 319d528 commit 8d66030
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/arweave/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (c *AssetResolver) ResolveClaims(claim_ids []string) (map[string]string, er
return nil, err
}

jsonResponse, err := c.makeRequest(http.MethodGet, c.batchClaimResolverUrl, jsonData)
jsonResponse, err := c.makeRequest(http.MethodPost, c.batchClaimResolverUrl, jsonData)
if err != nil {
return nil, err
}
Expand Down
3 changes: 2 additions & 1 deletion app/query/processors.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,9 @@ func preflightHookGet(caller *Caller, ctx context.Context) (*jsonrpc.RPCResponse
arUrl, err := arweave.GetClaimUrl(config.GetArfleetCDN(), claim.ClaimID)
if err != nil || arUrl == "" {
responseResult[ParamStreamingUrl] = contentURL
} else {
responseResult[ParamStreamingUrl] = arUrl
}
responseResult[ParamStreamingUrl] = arUrl

response.Result = responseResult
return response, nil
Expand Down

0 comments on commit 8d66030

Please sign in to comment.