Skip to content

Commit

Permalink
Add Omni transaction validity check
Browse files Browse the repository at this point in the history
  • Loading branch information
quinoah committed Jul 25, 2023
1 parent 11254b5 commit 32da109
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/src/infrastructure/omni/OmniExplorerService.ts
Expand Up @@ -59,7 +59,8 @@ export class OmniExplorerService {

public filterBurnTransactionsForAddress(sendingAddress: string, transactions: OmniExplorerTransaction[]) {
return transactions.filter(t => {
return t.confirmations >= parseInt(this.requiredConfirmations) &&
return t.valid &&
t.confirmations >= parseInt(this.requiredConfirmations) &&
new BigNumber(t.propertyid).isEqualTo(this.tokenPropertyId) &&
t.sendingaddress.trim().toLowerCase() === sendingAddress.trim().toLowerCase();
});
Expand Down Expand Up @@ -100,4 +101,4 @@ export class OmniExplorerService {
throw error;
}
}
}
}

0 comments on commit 32da109

Please sign in to comment.