Skip to content

Commit

Permalink
Remove stupid check
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Sep 22, 2023
1 parent 7322c87 commit 6f5c349
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions actions/test/run_local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,9 @@ async function processTx(
let hasErrors = false;
const transaction = await provider.getTransaction(tx);
if (!transaction?.blockNumber) {
throw new Error(`The transaction ${tx} is not mined yet (no blockNumber)`);
throw new Error(`The transaction ${tx} not found`);
}
const block = await provider.getBlock(transaction.blockNumber);
if (!transaction) {
throw new Error(`[run_local] Transaction ${tx} not found`);
}

hasErrors ||= !(await _processTx(
provider,
Expand Down

0 comments on commit 6f5c349

Please sign in to comment.