Gas Error - Eip838ExecutionError
Opened this issue · 1 comments
Describe the bug
I am trying to run some test erc20 contracts on Ethereum Sepolia and main-net. I get the following error when trying to deploy them
"Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
Error happened while trying to execute a function inside a smart contract
Eip838ExecutionError: execution reverted"
I have used my own test contracts as well as random contracts , for example i picked three spontaneously on Etherscan, all produce the same error on both testnet and main-net
Contract0: https://etherscan.io/token/0xEE2a03Aa6Dacf51C18679C516ad5283d8E7C2637#code
Contract1: https://etherscan.io/token/0x9cF77be84214beb066F26a4ea1c38ddcc2AFbcf7#code
Contract2: https://etherscan.io/token/0x8fa025E8342EaD1037d2954b95333FF2Bf57162b#code
To Reproduce
Steps to reproduce the behavior:
- Copy the contract code
- Compile using 0.8.27 / other versions also same error
- EVM version, i have used "Default" and the others to no avail...
- Optimization is ON - all contracts compile correctly
- Injected Metamask, hit deploy and then get the aforementioned error
Expected behavior
I have been using Remix for years, the old contracts i worked on which would deploy and run perfectly now also give the same gas error
Desktop (please complete the following information):
- OS: Windows 11
- Browser Chrome & Firefox - Latest updated
Additional context
Add any other context about the problem here.
COuld you solve the issue?