Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
73a34f96
Commit
73a34f96
authored
Jan 18, 2019
by
Francisco Giordano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix roles initialization bug
parent
877f07f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
StandardToken.sol
contracts/examples/StandardToken.sol
+2
-2
StandaloneERC20.sol
contracts/token/ERC20/StandaloneERC20.sol
+2
-2
StandaloneERC721.sol
contracts/token/ERC721/StandaloneERC721.sol
+2
-2
No files found.
contracts/examples/StandardToken.sol
View file @
73a34f96
...
@@ -23,10 +23,10 @@ contract StandardToken is Initializable, ERC20Detailed, ERC20Mintable, ERC20Paus
...
@@ -23,10 +23,10 @@ contract StandardToken is Initializable, ERC20Detailed, ERC20Mintable, ERC20Paus
}
}
// Initialize the minter and pauser roles, and renounce them
// Initialize the minter and pauser roles, and renounce them
ERC20Mintable.initialize(
address(this)
);
ERC20Mintable.initialize(
msg.sender
);
renounceMinter();
renounceMinter();
ERC20Pausable.initialize(
address(this)
);
ERC20Pausable.initialize(
msg.sender
);
renouncePauser();
renouncePauser();
// Add the requested minters and pausers (this can be done after renouncing since
// Add the requested minters and pausers (this can be done after renouncing since
...
...
contracts/token/ERC20/StandaloneERC20.sol
View file @
73a34f96
...
@@ -21,10 +21,10 @@ contract StandaloneERC20 is Initializable, ERC20Detailed, ERC20Mintable, ERC20Pa
...
@@ -21,10 +21,10 @@ contract StandaloneERC20 is Initializable, ERC20Detailed, ERC20Mintable, ERC20Pa
_mint(initialHolder, initialSupply);
_mint(initialHolder, initialSupply);
// Initialize the minter and pauser roles, and renounce them
// Initialize the minter and pauser roles, and renounce them
ERC20Mintable.initialize(
address(this)
);
ERC20Mintable.initialize(
msg.sender
);
renounceMinter();
renounceMinter();
ERC20Pausable.initialize(
address(this)
);
ERC20Pausable.initialize(
msg.sender
);
renouncePauser();
renouncePauser();
// Add the requested minters and pausers (this can be done after renouncing since
// Add the requested minters and pausers (this can be done after renouncing since
...
...
contracts/token/ERC721/StandaloneERC721.sol
View file @
73a34f96
...
@@ -21,10 +21,10 @@ contract StandaloneERC721
...
@@ -21,10 +21,10 @@ contract StandaloneERC721
ERC721Metadata.initialize(name, symbol);
ERC721Metadata.initialize(name, symbol);
// Initialize the minter and pauser roles, and renounce them
// Initialize the minter and pauser roles, and renounce them
ERC721MetadataMintable.initialize(
address(this)
);
ERC721MetadataMintable.initialize(
msg.sender
);
renounceMinter();
renounceMinter();
ERC721Pausable.initialize(
address(this)
);
ERC721Pausable.initialize(
msg.sender
);
renouncePauser();
renouncePauser();
// Add the requested minters and pausers (this can be done after renouncing since
// Add the requested minters and pausers (this can be done after renouncing since
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment