Fixed TypeError bug

This commit is contained in:
Ayanami 2022-06-09 02:27:56 +09:00
parent 142ce883b4
commit 8ca419c425
No known key found for this signature in database
GPG Key ID: 0CABDF03077D92E4

View File

@ -299,7 +299,7 @@ class Transaction {
} }
_handleRpcError(e, method) { _handleRpcError(e, method) {
if (e.error.error) { if (e.error?.error) {
// Sometimes ethers wraps known errors, unwrap it in this case // Sometimes ethers wraps known errors, unwrap it in this case
e = e.error e = e.error
} }