Created
March 25, 2024 09:53
-
-
Save mrsheun/300d9373d8f611b1cb42d90c4d377198 to your computer and use it in GitHub Desktop.
Base Hacketon
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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity ^0.5.9; | |
import "@0x/contracts-erc20/contracts/src/ERC20Token.sol"; | |
/** | |
* @title SampleERC20 | |
* @dev Create a sample ERC20 standard token | |
*/ | |
contract SampleERC20 is ERC20Token { | |
string public name; | |
string public symbol; | |
uint256 public decimals; | |
constructor ( | |
string memory _name, | |
string memory _symbol, | |
uint256 _decimals, | |
uint256 _totalSupply | |
) | |
public | |
{ | |
name = _name; | |
symbol = _symbol; | |
decimals = _decimals; | |
_totalSupply = _totalSupply; | |
balances[msg.sender] = _totalSupply; | |
} | |
} | |
Deployment transaction hash 0x57e55cad2e8b550a6ab44876740ce8bd163f1038f1c4854588b246c0c9078098 | |
Interactions transaction hash 0xa2061fbad5ae476bbb8533867461b30467f856b12657c1e454b8b98c7fe0ee2e | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment