Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 60a6a8c

Browse files
author
Alex Luu
committed
update linter
1 parent 03c36a7 commit 60a6a8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/web3-eth/src/rpc_method_wrappers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,8 @@ export async function getTransactionReceipt<ReturnFormat extends DataFormat>(
503503
transactionHashFormatted,
504504
);
505505
} catch (error) {
506-
if (error.message === 'transaction indexing is in progress') { // geth indexing error, we poll until transactions stopped indexing
506+
// geth indexing error, we poll until transactions stopped indexing
507+
if (typeof error === 'object' && !isNullish(error) && 'message' in error && (error as { message: string }).message === 'transaction indexing is in progress') {
507508
console.warn('Transaction indexing is in progress.')
508509
} else {
509510
throw error;

0 commit comments

Comments
 (0)