From bebe7db452cb141f6a55b2b52110bed68be3a8a1 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 15 Oct 2024 12:00:45 +0200 Subject: [PATCH] fix using deprecated property --- libs/remix-lib/src/execution/txRunnerWeb3.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-lib/src/execution/txRunnerWeb3.ts b/libs/remix-lib/src/execution/txRunnerWeb3.ts index ffc6dcc793..0cdb0ee978 100644 --- a/libs/remix-lib/src/execution/txRunnerWeb3.ts +++ b/libs/remix-lib/src/execution/txRunnerWeb3.ts @@ -160,7 +160,7 @@ export class TxRunnerWeb3 { }, callback) }) .catch(err => { - if (err && err.message && err.message.indexOf('Invalid JSON RPC response') !== -1) { + if (err && err.error && err.error.indexOf('Invalid JSON RPC response') !== -1) { // // @todo(#378) this should be removed when https://github.com/WalletConnect/walletconnect-monorepo/issues/334 is fixed callback(new Error('Gas estimation failed because of an unknown internal error. This may indicated that the transaction will fail.')) return