Skip to content

Instantly share code, notes, and snippets.

@Juwonlo
Created March 23, 2024 13:01
Show Gist options
  • Save Juwonlo/3be3c678d789489ee1f8af49547842b3 to your computer and use it in GitHub Desktop.
Save Juwonlo/3be3c678d789489ee1f8af49547842b3 to your computer and use it in GitHub Desktop.
Filecoin Virtual Machine [ FVM]
// 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;
}
}
0x08B14A1208541E0cb0A619D99BBC1368e1CBf2Ec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment