github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/execution/testdata/changestate.sol (about)

     1  pragma solidity ^0.4.24;
     2  contract ChangeState {
     3      uint public n = 0;
     4      event Log(uint n);
     5      function ChangeStateWithLogFail(uint add) public {
     6          n += add;
     7          emit Log(n);
     8          require(false);
     9          n++;
    10      }
    11  }