github.com/datachainlab/burrow@v0.25.0/execution/solidity/revert.sol (about) 1 pragma solidity ^0.5.4; 2 3 contract Revert { 4 event NotReverting(uint32 indexed i); 5 6 function RevertAt(uint32 i) public { 7 if (i == 0) { 8 revert("I have reverted"); 9 } else { 10 i--; 11 emit NotReverting(i); 12 this.RevertAt(i); 13 } 14 } 15 16 function RevertNoReason() pure public { 17 revert(); 18 } 19 }