// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract KeyCoin { string public name; string public symbol; uint256 public totalSupply; mapping(address => uint256) balances; constructor(uint256 _totalSupply) { name = "KeyCoin"; symbol = "KEY"; totalSupply = _totalSupply; balances[msg.sender] = _totalSupply; } function balanceOf(address account) public view returns (uint256) { return balances[account]; } }