Skip to content

Instantly share code, notes, and snippets.

uint256 private _totalSupply = 100000000 * 10**18; // 1亿枚代币
mapping(address => uint256) private _balances;
constructor() {
_balances[msg.sender] = _totalSupply;
emit Transfer(address(0), msg.sender, _totalSupply);
}
function totalSupply() public view override returns (uint256) {