#StackBounty: #solidity #revert-opcode Returning an error code with revert

Bounty: 50

According to the newest version of the yellow paper and Solidity assembly specification, revert opcode can return an error code.

http://solidity.readthedocs.io/en/develop/assembly.html

revert(p, s) – end execution, revert state changes, return data mem[p..(p+s))

The revert function in pure solidity however, has 0 arguments. I guess it’s not supporting a return code yet.

[Q]: How can I use the revert from the Solidity assembly to pass an error code to the calling web3 JavaScript application? If this is not possible, please explain why.


Get this bounty!!!

Leave a Reply