Skip to content

Commit

Permalink
fix(whale-api): skip evmtx vin (#2151)
Browse files Browse the repository at this point in the history
<!--  Thanks for sending a pull request! -->

#### What this PR does / why we need it:

#### Which issue(s) does this PR fixes?:
<!--
(Optional) Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes #

#### Additional comments?:
  • Loading branch information
Pierre Gee authored Sep 26, 2023
1 parent 1a2fcf4 commit d2076b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/whale-api/src/module.indexer/model/transaction.vin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ export class TransactionVinIndexer extends Indexer {
const isEvmTx = checkIfEvmTx(txn)

for (const vin of txn.vin) {
if (vin.coinbase !== undefined || isEvmTx) {
if (isEvmTx) {
continue
}

if (vin.coinbase !== undefined) {
await this.vinMapper.put(this.map(txn, vin, undefined))
} else {
const vout = await this.voutFinder.findVout(block, vin.txid, vin.vout)
Expand Down

0 comments on commit d2076b8

Please sign in to comment.