Skip to content

Instantly share code, notes, and snippets.

@sekrystal
Created November 11, 2022 14:58
Show Gist options
  • Save sekrystal/f40da096f3ed73c201dc25934b31543d to your computer and use it in GitHub Desktop.
Save sekrystal/f40da096f3ed73c201dc25934b31543d to your computer and use it in GitHub Desktop.
EVM Contract Construction Example 1
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