Skip to content

Commit

Permalink
update linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Luu committed Jun 19, 2024
1 parent 03c36a7 commit 60a6a8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web3-eth/src/rpc_method_wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,8 @@ export async function getTransactionReceipt<ReturnFormat extends DataFormat>(
transactionHashFormatted,
);
} catch (error) {
if (error.message === 'transaction indexing is in progress') { // geth indexing error, we poll until transactions stopped indexing
// geth indexing error, we poll until transactions stopped indexing
if (typeof error === 'object' && !isNullish(error) && 'message' in error && (error as { message: string }).message === 'transaction indexing is in progress') {
console.warn('Transaction indexing is in progress.')
} else {
throw error;

Check warning on line 510 in packages/web3-eth/src/rpc_method_wrappers.ts

View check run for this annotation

Codecov / codecov/patch

packages/web3-eth/src/rpc_method_wrappers.ts#L507-L510

Added lines #L507 - L510 were not covered by tests
Expand Down

0 comments on commit 60a6a8c

Please sign in to comment.