github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/execution/testdata/basic-token.sol (about) 1 pragma solidity ^0.4.24; 2 3 contract BasicToken { 4 5 mapping(address => uint256) balances; 6 7 function transfer(address recipient, uint256 value) public { 8 balances[msg.sender] -= value; 9 balances[recipient] += value; 10 } 11 12 function balanceOf(address account) public constant returns (uint256) { 13 return balances[account]; 14 } 15 16 }