Created
November 11, 2022 15:24
-
-
Save sekrystal/22e9ab681a020ceea6fb9e3165df0b78 to your computer and use it in GitHub Desktop.
EVM Contract Construction Example 8
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 MyCoin2 { | |
mapping(address => uint256) balances; | |
constructor(uint256 _totalSupply) { | |
balances[msg.sender] = _totalSupply; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment