web3-core-method
Advanced tools
Comparing version 1.9.0 to 1.10.0-rc.0
@@ -525,3 +525,11 @@ /* | ||
else if (err && err.data) { | ||
reasonData = err.data.substring(10); | ||
// workaround embedded error details got from some providers like MetaMask | ||
if (typeof err.data === 'object') { | ||
// Ganache has no `originalError` sub-object unlike others | ||
var originalError = err.data.originalError ?? err.data; | ||
reasonData = originalError.data.substring(10); | ||
} | ||
else { | ||
reasonData = err.data.substring(10); | ||
} | ||
} | ||
@@ -634,6 +642,12 @@ if (reasonData) { | ||
}; | ||
const hasSendTxObject = isSendTx | ||
&& !!payload.params[0] | ||
&& typeof payload.params[0] === 'object'; | ||
if (hasSendTxObject && | ||
payload.params[0].type === '0x1' | ||
&& typeof payload.params[0].accessList === 'undefined') { | ||
payload.params[0].accessList = []; | ||
} | ||
// Send the actual transaction | ||
if (isSendTx | ||
&& !!payload.params[0] | ||
&& typeof payload.params[0] === 'object' | ||
if (hasSendTxObject | ||
&& (typeof payload.params[0].gasPrice === 'undefined' | ||
@@ -640,0 +654,0 @@ && (typeof payload.params[0].maxPriorityFeePerGas === 'undefined' |
{ | ||
"name": "web3-core-method", | ||
"version": "1.9.0", | ||
"version": "1.10.0-rc.0", | ||
"description": "Creates the methods on the web3 modules. This is an internal package.", | ||
@@ -18,6 +18,6 @@ "repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-core-method", | ||
"@ethersproject/transactions": "^5.6.2", | ||
"web3-core-helpers": "1.9.0", | ||
"web3-core-promievent": "1.9.0", | ||
"web3-core-subscriptions": "1.9.0", | ||
"web3-utils": "1.9.0" | ||
"web3-core-helpers": "1.10.0-rc.0", | ||
"web3-core-promievent": "1.10.0-rc.0", | ||
"web3-core-subscriptions": "1.10.0-rc.0", | ||
"web3-utils": "1.10.0-rc.0" | ||
}, | ||
@@ -28,3 +28,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "db5f505e06fb0b41eeda1378057f6a7187efa244" | ||
"gitHead": "3ed053faace1bcc66d3bb152690c155e754ca6d4" | ||
} |
@@ -656,3 +656,11 @@ /* | ||
} else if (err && err.data){ | ||
reasonData = err.data.substring(10); | ||
// workaround embedded error details got from some providers like MetaMask | ||
if (typeof err.data === 'object') { | ||
// Ganache has no `originalError` sub-object unlike others | ||
var originalError = err.data.originalError ?? err.data; | ||
reasonData = originalError.data.substring(10); | ||
} | ||
else { | ||
reasonData = err.data.substring(10); | ||
} | ||
} | ||
@@ -799,6 +807,16 @@ | ||
const hasSendTxObject = isSendTx | ||
&& !!payload.params[0] | ||
&& typeof payload.params[0] === 'object'; | ||
if (hasSendTxObject && | ||
payload.params[0].type === '0x1' | ||
&& typeof payload.params[0].accessList === 'undefined' | ||
) { | ||
payload.params[0].accessList = []; | ||
} | ||
// Send the actual transaction | ||
if (isSendTx | ||
&& !!payload.params[0] | ||
&& typeof payload.params[0] === 'object' | ||
if (hasSendTxObject | ||
&& ( | ||
@@ -805,0 +823,0 @@ typeof payload.params[0].gasPrice === 'undefined' |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
79477
1727
1
+ Addedweb3-core-helpers@1.10.0-rc.0(transitive)
+ Addedweb3-core-promievent@1.10.0-rc.0(transitive)
+ Addedweb3-core-subscriptions@1.10.0-rc.0(transitive)
+ Addedweb3-eth-iban@1.10.0-rc.0(transitive)
+ Addedweb3-utils@1.10.0-rc.0(transitive)
- Removedweb3-core-helpers@1.9.0(transitive)
- Removedweb3-core-promievent@1.9.0(transitive)
- Removedweb3-core-subscriptions@1.9.0(transitive)
- Removedweb3-eth-iban@1.9.0(transitive)
- Removedweb3-utils@1.9.0(transitive)
Updatedweb3-utils@1.10.0-rc.0