Timeline for What is the proper use of inline assembly revert, and how do I retrieve returndata passed to it?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 31, 2018 at 18:06 | comment | added | benjaminion |
Yes, REVERT was implemented in the Byzantium fork and works fine. However, current Solidity does not implement the ability to handle the data returned by Revert (the revert reason). This should be available Real Soon Now (maybe even is as an experimental feature. I'm too lazy to check).
|
|
Mar 28, 2018 at 13:12 | comment | added | Ilan Dshare | is there any updated on this issue? does opcode revert exist with full capabilities? | |
Aug 4, 2017 at 2:42 | vote | accept | emm | ||
Aug 3, 2017 at 21:49 | comment | added | emm | Ohh that's interesting. Thanks for that clarification or I would've been trying to debug this for hours! | |
Aug 3, 2017 at 21:43 | comment | added | benjaminion | Yes, the correct revert opcode is inserted by the compiler, 0xfd, but the EVM doesn't recognise it yet, so it barfs and will continue to do so until the first Metropolis fork. | |
Aug 3, 2017 at 21:25 | comment | added | emm |
The feature is listed in release 0.4.10: Inline assembly: Support revert (EIP140) as an opcode.
|
|
Aug 3, 2017 at 17:51 | history | answered | benjaminion | CC BY-SA 3.0 |