mirror of
https://github.com/alexgo-io/gaze-indexer.git
synced 2026-04-29 04:05:12 +08:00
fix: don't add zero mint to unallocated
This commit is contained in:
@@ -109,8 +109,10 @@ func (p *Processor) processTx(ctx context.Context, tx *types.Transaction, blockH
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "error during mint")
|
||||
}
|
||||
unallocated[mintRuneId] = unallocated[mintRuneId].Add(amount)
|
||||
mints[mintRuneId] = amount
|
||||
if !amount.IsZero() {
|
||||
unallocated[mintRuneId] = unallocated[mintRuneId].Add(amount)
|
||||
mints[mintRuneId] = amount
|
||||
}
|
||||
}
|
||||
|
||||
etching, etchedRuneId, etchedRune, err := p.getEtchedRune(ctx, tx, runestone)
|
||||
|
||||
Reference in New Issue
Block a user