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