ethereum / remix-project

Remix is a browser-based compiler and IDE that enables users to build Ethereum contracts with Solidity language and to debug transactions.
https://remix-ide.readthedocs.io
MIT License
2.44k stars 938 forks source link

Gas Error - Eip838ExecutionError #5162

Open lizivyhelena opened 1 month ago

lizivyhelena commented 1 month ago

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):

Additional context Add any other context about the problem here.

sezeras8172 commented 1 week ago

COuld you solve the issue?