Title: Warning! Error encountered during contract execution [execution reverted] Post by: newnft on May 01, 2022, 06:00:28 PM i created ICO smart contract with remix
everything is fine i try to send eth to the smart contract but i get this Warning! Error encountered during contract execution [execution reverted] tried many times always i get same error Title: Re: Warning! Error encountered during contract execution [execution reverted] Post by: vv181 on May 01, 2022, 06:05:48 PM Try to post the full tx id, maybe we can take a look deeper at it.
Title: Re: Warning! Error encountered during contract execution [execution reverted] Post by: Odusko on May 01, 2022, 06:26:10 PM Try to post the full tx id, maybe we can take a look deeper at it. I don't think the transaction was send to the blockchain and will not generate tx I use to get a similar error response on my wallet most especially on ddapp uni swap when I want to execute a transaction I use to get a similar error response to may be due to network congestion or low gas fees just go through the advance setting on your wallet and try adjusting the fee or wait till the network is less congested and try again.Title: Re: Warning! Error encountered during contract execution [execution reverted] Post by: vv181 on May 01, 2022, 07:50:46 PM Try to post the full tx id, maybe we can take a look deeper at it. I don't think the transaction was send to the blockchain and will not generate tx I use to get a similar error response on my wallet most especially on ddapp uni swap when I want to execute a transaction I use to get a similar error response~We can't know for sure since OP using a custom smart contract. I don't know what is wrong, whether on the user side or not. But I suspect it is rather how OP smart contract behaves. It would be much better if @OP gives more information regarding tx if any, or a specific part of the code. Title: Re: Warning! Error encountered during contract execution [execution reverted] Post by: JeromeTash on May 01, 2022, 08:53:11 PM It would be better if you posted more details.
Meanwhile, there are so many threads about such an error on Reddit if you make a full search. You could come up with a quick answer. You could try debugging using the instructions and tools listed here - https://docs.kaleido.io/developers/debugging Title: Re: Warning! Error encountered during contract execution [execution reverted] Post by: serjent05 on May 01, 2022, 09:12:15 PM there is also the same kind of error lurking in reddit,
You can try to check them and see if they will fix your problem. Quote from: https://www.reddit.com/r/ledgerwallet/comments/bdeelp/help_with_warning_error_encountered_during/ The transaction is reverted, so the ETH/tokens/... never left your account in the first place. The ETH you paid for gas is not returned however. Increase the gas limit, not the gas price. The gas limit is how much gas a transaction can use in total, and the gas price is how much you pay per unit of gas. More info on gas can be found here (https://support.mycrypto.com/general-knowledge/ethereum-blockchain/what-is-gas), if you're interested. Quote from: https://www.reddit.com/r/UniSwap/comments/m8ibk7/warning_error_encountered_during_contract/ So generally execution reverted means the transaction was canceled due to slippage. Every transaction has a slippage % and if that % is exceeded the transaction is reverted. Yes you paid the gas fee for it, because the miner did "work" but had to reverse the outcome. Usually this happens for a few reasons: Your transaction waited too long to execute (gas price was too low), and the price deviated too much between the time the transaction was initiated and when it was processed). You tried to swap an amount that was large relative to the size of the pool, i.e. a small cap coin where your swap represents like 10% of the liquidity pool, which caused the price to fluctuate and exceed the slippage %. The market was very volatile at the time of your transaction, in which case the slippage % was set too low. https://ethereum.stackexchange.com/questions/87475/how-to-fix-warning-error-encountered-during-contract-execution-out-of-gas https://forum.moralis.io/t/warning-error-encountered-during-contract-execution-reverted/901 That is another possibility, but execution reverted errors in some cases do get included in a transaction. We can't know for sure since OP using a custom smart contract. I don't know what is wrong, whether on the user side or not. But I suspect it is rather how OP smart contract behaves. It would be much better if @OP gives more information regarding tx if any, or a specific part of the code. If everything about slippage, and gas fee don't solve the problem, I think this ↑↑↑ |