Created
November 11, 2022 14:58
-
-
Save sekrystal/f40da096f3ed73c201dc25934b31543d to your computer and use it in GitHub Desktop.
EVM Contract Construction Example 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.8.13; | |
contract MyCoin { | |
uint public constant totalSupply = 1000000000000000000000000000; | |
mapping(address => uint256) balances; | |
constructor() { | |
balances[msg.sender] = totalSupply; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment