mirror of
https://github.com/alexgo-io/gaze-indexer.git
synced 2026-04-30 04:35:13 +08:00
fix: wrong condition for non-OP_RETURN output
This commit is contained in:
@@ -235,7 +235,7 @@ func (p *Processor) processTx(ctx context.Context, tx *types.Transaction, blockH
|
||||
// if no pointer is provided, use the first non-OP_RETURN output
|
||||
if pointer == nil {
|
||||
for i, txOut := range tx.TxOut {
|
||||
if txOut.IsOpReturn() {
|
||||
if !txOut.IsOpReturn() {
|
||||
pointer = lo.ToPtr(uint64(i))
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user