[Ethereum] what is [Reverted] during contract execution

contract-deploymentcontract-invocationrevert-opcodetransactions

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

Best Answer

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.

Related Topic