diff --git a/src/Transaction.js b/src/Transaction.js index 72c3bb2..c37d928 100644 --- a/src/Transaction.js +++ b/src/Transaction.js @@ -299,7 +299,7 @@ class Transaction { } _handleRpcError(e, method) { - if (e.error.error) { + if (e.error?.error) { // Sometimes ethers wraps known errors, unwrap it in this case e = e.error }