Skip to content

[Bug] findUnspentRecords should not use request failure to check unspent record #829

Open
@shresthagrawal

Description

@shresthagrawal

🐛 Bug Report

findUnspentRecords currently calls the getTransactionId API and, upon failure, assumes that the record is unspent. Using an unspecified catch block to handle core logic is an anti-pattern. The API errors can happen for unknown reasons, which would lead to false positives.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions