-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eth_estimateGas - error , l can't connect my Dapp with my #3089
Comments
This issue is also being tracked on Linear. We use Linear to manage our development process, but we keep the conversations on Github. LINEAR-ID: 01c6de0f-ced1-488d-b5c7-4b388ae8f5f9 |
@Programmer001-JS can you provide a minimal reproducible example? |
I have a same issue, we were trying to use metamask connect to hardhat node, and we could do the first transaction between the test wallets. However, when we try to do the second transaction , it would say If you think this is a bug in Hardhat, please report it here: https://hardhat.org/reportbug" and we need to restart the hardhat node and reset account on metamask. |
same issue: |
Problem the same as @m1s5, see screen |
Bump! |
same problem |
Does anybody have a solution for that? |
It looks like the issue is in MetaMask browser extension. It works just fine with MetaMask for Android. I tried Chrome and FireFox extensions. |
Finally I got it! The default /// hardhat.config.js:
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.17",
networks: {
hardhat: {
chainId: 1337, // default is 31337
}
}
}; I'm sure the root of the problem is out there. |
Now l have this msg: eth_sendRawTransaction Trying to send a raw transaction with an invalid chainId. The expected chainId is 31337 |
Same error here using hardhat tests.
|
Any workaround for this? iam facing the same issue |
@matilareo checkout this #3089 (comment) |
I've tried other chain id than 31337 and hit the same issue. |
Closing in favor of #3474 For anyone landing here: a workaround is to set the initial base fee to 0: module.exports = {
solidity: "0.8.17",
networks: {
hardhat: {
initialBaseFeePerGas: 0
},
},
}; |
eth_estimateGas
If you think this is a bug in Hardhat, please report it here: https://hardhat.org/reportbug
*** l can't connect and approve transactions with my wallet metamask.
l run - npx hardhat test - in terminal , and l had 7 passing successfullytest, but in my npx hardhat node terminal i have this error.
The text was updated successfully, but these errors were encountered: