Compare commits

..

2 Commits

Author SHA1 Message Date
Gaze
361a3acfa4 fix: incorrect condition for finding output destinations 2024-07-08 13:34:04 +07:00
Gaze
a663f909fa Merge remote-tracking branch 'origin/main' into develop 2024-07-04 12:46:51 +07:00
2 changed files with 2 additions and 6 deletions

View File

@@ -146,7 +146,7 @@ func (p *Processor) processTx(ctx context.Context, tx *types.Transaction, blockH
// find all non-OP_RETURN outputs
var destinations []int
for i, txOut := range tx.TxOut {
if txOut.IsOpReturn() {
if !txOut.IsOpReturn() {
destinations = append(destinations, i)
}
}

View File

@@ -90,11 +90,7 @@ func (h *Client) request(ctx context.Context, reqOptions RequestOptions) (*HttpR
parsedUrl := h.BaseURL()
parsedUrl.Path = path.Join(parsedUrl.Path, reqOptions.path)
baseQuery := parsedUrl.Query()
for k, v := range reqOptions.Query {
baseQuery[k] = v
}
parsedUrl.RawQuery = baseQuery.Encode()
parsedUrl.RawQuery = reqOptions.Query.Encode() // TODO: merge query params if base url already have query params
// remove %20 from url (empty space)
url := strings.TrimSuffix(parsedUrl.String(), "%20")