Skip to content

Commit

Permalink
fixed and renamed ERC20Initializable
Browse files Browse the repository at this point in the history
  • Loading branch information
kostysh committed Feb 4, 2021
1 parent 99cc6b5 commit 0fbe027
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,21 @@

pragma solidity ^0.6.0;

import "@openzeppelin/upgrades-core/contracts/Initializable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";

/**
* @dev Easy configurable and upgradeable token
*/
contract ERC20Upgradeable is Initializable, ERC20 {
contract ERC20Initializable is ERC20Upgradeable {

/// @dev Token constructor
initialize(
function initialize(
string memory name,
string memory symbol,
uint8 decimals,
uint256 supply
) public initializer {
_name = name;
_symbol = symbol;
__ERC20_init(name, symbol);
_setupDecimals(decimals);
_mint(msg.sender, supply);
}
Expand Down
38 changes: 22 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@windingtree/smart-contracts-libraries",
"version": "0.3.0",
"version": "0.4.0",
"description": "Libraries and utilities for smart contracts",
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -28,13 +28,14 @@
},
"homepage": "https://github.com/windingtree/smart-contracts-libraries#readme",
"dependencies": {
"@openzeppelin/contracts": "3.3.0",
"@openzeppelin/contracts": "3.4.0",
"@openzeppelin/contracts-upgradeable": "3.4.0",
"@openzeppelin/upgrades-core": "1.5.0"
},
"devDependencies": {
"solc": "0.8.1",
"solhint": "3.3.2",
"truffle": "5.1.63",
"truffle": "5.1.64",
"@truffle/hdwallet-provider": "1.2.1"
}
}

0 comments on commit 0fbe027

Please sign in to comment.