Skip to content

Commit

Permalink
fix using deprecated property
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Oct 15, 2024
1 parent 8190667 commit 7f78803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/remix-lib/src/execution/txRunnerWeb3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f78803

Please sign in to comment.