You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: packages/web3-core-method/src/index.js
+4-1
Original file line number
Diff line number
Diff line change
@@ -850,7 +850,10 @@ function _handleTxPricing(method, tx) {
850
850
getGasPrice()
851
851
]).then(responses=>{
852
852
const[block,gasPrice]=responses;
853
-
if(block&&block.baseFeePerGas){
853
+
if(
854
+
(tx.type==='0x2'||tx.type===undefined)&&
855
+
(block&&block.baseFeePerGas)
856
+
){
854
857
// The network supports EIP-1559
855
858
856
859
// Taken from https://github.com/ethers-io/ethers.js/blob/ba6854bdd5a912fe873d5da494cb5c62c190adde/packages/abstract-provider/src.ts/index.ts#L230
0 commit comments