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
b1a80156
Commit
b1a80156
authored
Apr 20, 2018
by
Francisco Giordano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix initializers and tests
parent
2eac2a79
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
DetailedERC20Mock.sol
contracts/mocks/DetailedERC20Mock.sol
+1
-1
ERC721TokenMock.sol
contracts/mocks/ERC721TokenMock.sol
+1
-1
TokenTimelock.test.js
test/token/ERC20/TokenTimelock.test.js
+1
-1
No files found.
contracts/mocks/DetailedERC20Mock.sol
View file @
b1a80156
...
...
@@ -6,6 +6,6 @@ import "../token/ERC20/DetailedERC20.sol";
contract DetailedERC20Mock is StandardToken, DetailedERC20 {
function DetailedERC20Mock(string _name, string _symbol, uint8 _decimals) public {
DetailedERC20.initialize(_name, _symbol, _decimals);
DetailedERC20.initialize(
msg.sender,
_name, _symbol, _decimals);
}
}
contracts/mocks/ERC721TokenMock.sol
View file @
b1a80156
...
...
@@ -10,7 +10,7 @@ import "../token/ERC721/ERC721Token.sol";
*/
contract ERC721TokenMock is ERC721Token {
function ERC721TokenMock(string name, string symbol) public {
ERC721Token.initialize(name, symbol);
ERC721Token.initialize(
msg.sender,
name, symbol);
}
function mint(address _to, uint256 _tokenId) public {
...
...
test/token/ERC20/TokenTimelock.test.js
View file @
b1a80156
...
...
@@ -19,7 +19,7 @@ contract('TokenTimelock', function ([_, owner, beneficiary]) {
await
this
.
token
.
initialize
(
owner
);
this
.
releaseTime
=
latestTime
()
+
duration
.
years
(
1
);
this
.
timelock
=
await
TokenTimelock
.
new
();
await
this
.
timelock
.
initialize
(
this
.
token
.
address
,
beneficiary
,
this
.
releaseTime
);
await
this
.
timelock
.
initialize
(
owner
,
this
.
token
.
address
,
beneficiary
,
this
.
releaseTime
);
await
this
.
token
.
mint
(
this
.
timelock
.
address
,
amount
,
{
from
:
owner
});
});
...
...
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