* switch to using Context internally
* add context import
* Add smoke test to make sure enabling GSN support works
* Update test/GSN/ERC721GSNRecipientMock.test.js
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
* Upgrade truffle
* add missing awaits
* Revert "Upgrade truffle"
This reverts commit f9b0ba9019.
22 lines
650 B
Solidity
22 lines
650 B
Solidity
pragma solidity ^0.5.0;
|
|
|
|
import "../GSN/Context.sol";
|
|
import "../token/ERC20/ERC20.sol";
|
|
import "../token/ERC20/ERC20Detailed.sol";
|
|
|
|
/**
|
|
* @title SimpleToken
|
|
* @dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator.
|
|
* Note they can later distribute these tokens as they wish using `transfer` and other
|
|
* `ERC20` functions.
|
|
*/
|
|
contract SimpleToken is Context, ERC20, ERC20Detailed {
|
|
|
|
/**
|
|
* @dev Constructor that gives _msgSender() all of existing tokens.
|
|
*/
|
|
constructor () public ERC20Detailed("SimpleToken", "SIM", 18) {
|
|
_mint(_msgSender(), 10000 * (10 ** uint256(decimals())));
|
|
}
|
|
}
|