status-go/services/wallet/erc20/erc20.sol

20 lines
439 B
Solidity
Raw Normal View History

pragma solidity ^0.5.0;
contract ERC20Transfer {
2019-07-02 07:28:57 +00:00
mapping (address => uint256) public balances;
constructor() public {}
event Transfer(address indexed from, address indexed to, uint256 value);
function transfer(address to, uint256 value) public {
2019-07-02 07:28:57 +00:00
balances[to] += value;
emit Transfer(msg.sender, to, value);
}
2019-07-02 07:28:57 +00:00
function balanceOf(address account) public view returns (uint256) {
return balances[account];
}
}