Skip to content
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

Gas Error - Eip838ExecutionError #5162

Open
lizivyhelena opened this issue Sep 4, 2024 · 1 comment
Open

Gas Error - Eip838ExecutionError #5162

lizivyhelena opened this issue Sep 4, 2024 · 1 comment

Comments

@lizivyhelena
Copy link

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:

  1. Copy the contract code
  2. Compile using 0.8.27 / other versions also same error
  3. EVM version, i have used "Default" and the others to no avail...
  4. Optimization is ON - all contracts compile correctly
  5. 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.

@sezeras8172
Copy link

COuld you solve the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants