1

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:

https://etherscan.io/tx/0x84f659b078abc10c419c59f90e81263817b0b645fd05e56effe52389697aa990

can someone help and explain please?

Theo

2

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 '18 at 6:26
  • It is the equivalent of a throw, why your code throws, i don't know – Hari GTT Psicolabis Mar 15 '18 at 20:59
  • 1
    I thought that.. But I can't find the error in the code.. ☠ (((( it's getting frustrating – BitkZ Mar 17 '18 at 8:39

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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