I have sent ETH to a contract address, and it "failed" the transaction saying it is: Warning! Error encountered during contract execution [Reverted]

contract address and transaction failure here:


can someone help and explain please?


1 Answer 1


Revert is a new opcode from Byzantium. When an execution throws, before Byzantium, all gas was consumed and the contract remained in the previous state (it rolled back). Now, it doesn't consume all gas, because with this opcode the execution get's reverted and the remaining gas gets returned to the function caller.

  • Ok so it is preventing the execution to save the gas. But then why is it preventing the execution?
    – BitkZ
    Mar 6, 2018 at 6:26
  • It is the equivalent of a throw, why your code throws, i don't know Mar 15, 2018 at 20:59
  • 2
    I thought that.. But I can't find the error in the code.. ☠ (((( it's getting frustrating
    – BitkZ
    Mar 17, 2018 at 8:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.