From 60a6a8c40524e407d69ed144440587a4f19923bb Mon Sep 17 00:00:00 2001 From: Alex Luu Date: Wed, 19 Jun 2024 16:01:45 -0400 Subject: [PATCH] update linter --- packages/web3-eth/src/rpc_method_wrappers.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/web3-eth/src/rpc_method_wrappers.ts b/packages/web3-eth/src/rpc_method_wrappers.ts index 605e718d693..3a03afe0967 100644 --- a/packages/web3-eth/src/rpc_method_wrappers.ts +++ b/packages/web3-eth/src/rpc_method_wrappers.ts @@ -503,7 +503,8 @@ export async function getTransactionReceipt( 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;