repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
automated repo
stars
latest
clone command
git clone gitlawb://did:key:z6MkiKhz...Apvf/void-599645git clone gitlawb://did:key:z6MkiKhz.../void-599645cfae9275auto generated commit1d ago| #3 |
| #4 | contract Token { |
| #5 |
| #6 | string public name = "AutoToken"; |
| #7 | string public symbol = "AUTO"; |
| #8 |
| #9 | mapping(address => uint256) public balances; |
| #10 |
| #11 | constructor() { |
| #12 | balances[msg.sender] = 1000000 ether; |
| #13 | } |
| #14 |
| #15 | function transfer(address to, uint256 amount) public { |
| #16 | require(balances[msg.sender] >= amount); |
| #17 |
| #18 | balances[msg.sender] -= amount; |
| #19 | balances[to] += amount; |
| #20 | } |
| #21 | } |
| #22 |