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

     1  pragma solidity ^0.4.24;
     2  contract MyContract {
     3      struct Data {
     4          uint a;
     5          uint b;
     6      }
     7      mapping (uint => Data) public items;
     8      function MyContract() {
     9          items[0] = Data(1,2);
    10          items[1] = Data(3,4);
    11          items[2] = Data(5,6);
    12          delete items[1];
    13      }
    14  }