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
e3575922
Commit
e3575922
authored
Jan 24, 2019
by
Francisco Giordano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix linter errors
parent
f3635e15
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
50 additions
and
55 deletions
+50
-55
CapperRole.sol
contracts/access/roles/CapperRole.sol
+1
-1
MinterRole.sol
contracts/access/roles/MinterRole.sol
+1
-1
PauserRole.sol
contracts/access/roles/PauserRole.sol
+1
-1
SignerRole.sol
contracts/access/roles/SignerRole.sol
+1
-1
WhitelistAdminRole.sol
contracts/access/roles/WhitelistAdminRole.sol
+1
-1
WhitelistedRole.sol
contracts/access/roles/WhitelistedRole.sol
+2
-3
IndividuallyCappedCrowdsale.sol
...acts/crowdsale/validation/IndividuallyCappedCrowdsale.sol
+1
-1
WhitelistCrowdsale.sol
contracts/crowdsale/validation/WhitelistCrowdsale.sol
+1
-1
SignatureBouncer.sol
contracts/drafts/SignatureBouncer.sol
+2
-2
Pausable.sol
contracts/lifecycle/Pausable.sol
+1
-1
CapperRoleMock.sol
contracts/mocks/CapperRoleMock.sol
+1
-1
MinterRoleMock.sol
contracts/mocks/MinterRoleMock.sol
+1
-1
PauserRoleMock.sol
contracts/mocks/PauserRoleMock.sol
+1
-1
PullPaymentMock.sol
contracts/mocks/PullPaymentMock.sol
+1
-1
SignatureBouncerMock.sol
contracts/mocks/SignatureBouncerMock.sol
+1
-1
SignerRoleMock.sol
contracts/mocks/SignerRoleMock.sol
+1
-1
WhitelistAdminRoleMock.sol
contracts/mocks/WhitelistAdminRoleMock.sol
+1
-1
WhitelistedRoleMock.sol
contracts/mocks/WhitelistedRoleMock.sol
+1
-1
PullPayment.sol
contracts/payment/PullPayment.sol
+1
-1
RefundEscrow.sol
contracts/payment/escrow/RefundEscrow.sol
+1
-1
ERC20Mintable.sol
contracts/token/ERC20/ERC20Mintable.sol
+1
-1
ERC721MetadataMintable.sol
contracts/token/ERC721/ERC721MetadataMintable.sol
+1
-1
ERC721Mintable.sol
contracts/token/ERC721/ERC721Mintable.sol
+1
-1
package-lock.json
package-lock.json
+17
-17
StandardToken.test.js
test/examples/StandardToken.test.js
+2
-3
StandaloneERC20.test.js
test/token/ERC20/StandaloneERC20.test.js
+4
-5
StandaloneERC721.test.js
test/token/ERC721/StandaloneERC721.test.js
+2
-4
No files found.
contracts/access/roles/CapperRole.sol
View file @
e3575922
...
...
@@ -12,7 +12,7 @@ contract CapperRole is Initializable {
Roles.Role private _cappers;
function
_initialize(address sender) internal
initializer {
function
initialize(address sender) public
initializer {
if (!isCapper(sender)) {
_addCapper(sender);
}
...
...
contracts/access/roles/MinterRole.sol
View file @
e3575922
...
...
@@ -12,7 +12,7 @@ contract MinterRole is Initializable {
Roles.Role private _minters;
function
_initialize(address sender) internal
initializer {
function
initialize(address sender) public
initializer {
if (!isMinter(sender)) {
_addMinter(sender);
}
...
...
contracts/access/roles/PauserRole.sol
View file @
e3575922
...
...
@@ -12,7 +12,7 @@ contract PauserRole is Initializable {
Roles.Role private _pausers;
function
_initialize(address sender) internal
initializer {
function
initialize(address sender) public
initializer {
if (!isPauser(sender)) {
_addPauser(sender);
}
...
...
contracts/access/roles/SignerRole.sol
View file @
e3575922
...
...
@@ -12,7 +12,7 @@ contract SignerRole is Initializable {
Roles.Role private _signers;
function
_initialize(address sender) internal
initializer {
function
initialize(address sender) public
initializer {
if (!isSigner(sender)) {
_addSigner(sender);
}
...
...
contracts/access/roles/WhitelistAdminRole.sol
View file @
e3575922
...
...
@@ -16,7 +16,7 @@ contract WhitelistAdminRole is Initializable {
Roles.Role private _whitelistAdmins;
function
_initialize(address sender) internal
initializer {
function
initialize(address sender) public
initializer {
if (!isWhitelistAdmin(sender)) {
_addWhitelistAdmin(sender);
}
...
...
contracts/access/roles/WhitelistedRole.sol
View file @
e3575922
...
...
@@ -24,8 +24,8 @@ contract WhitelistedRole is Initializable, WhitelistAdminRole {
_;
}
function
_initialize(address sender) internal
initializer {
WhitelistAdminRole.
_
initialize(sender);
function
initialize(address sender) public
initializer {
WhitelistAdminRole.initialize(sender);
}
function isWhitelisted(address account) public view returns (bool) {
...
...
@@ -56,4 +56,3 @@ contract WhitelistedRole is Initializable, WhitelistAdminRole {
uint256[50] private ______gap;
}
}
contracts/crowdsale/validation/IndividuallyCappedCrowdsale.sol
View file @
e3575922
...
...
@@ -18,7 +18,7 @@ contract IndividuallyCappedCrowdsale is Initializable, Crowdsale, CapperRole {
function initialize(address sender) public initializer {
assert(Crowdsale._hasBeenInitialized());
CapperRole.
_
initialize(sender);
CapperRole.initialize(sender);
}
/**
...
...
contracts/crowdsale/validation/WhitelistCrowdsale.sol
View file @
e3575922
...
...
@@ -9,7 +9,7 @@ import "../../access/roles/WhitelistedRole.sol";
*/
contract WhitelistCrowdsale is Initializable, WhitelistedRole, Crowdsale {
function initialize(address sender) public initializer {
WhitelistedRole.
_
initialize(sender);
WhitelistedRole.initialize(sender);
assert(Crowdsale._hasBeenInitialized());
}
...
...
contracts/drafts/SignatureBouncer.sol
View file @
e3575922
...
...
@@ -44,8 +44,8 @@ contract SignatureBouncer is Initializable, SignerRole {
// Signature size is 65 bytes (tightly packed v + r + s), but gets padded to 96 bytes
uint256 private constant _SIGNATURE_SIZE = 96;
function
_initialize(address sender) internal
initializer {
SignerRole.
_
initialize(sender);
function
initialize(address sender) public
initializer {
SignerRole.initialize(sender);
}
/**
...
...
contracts/lifecycle/Pausable.sol
View file @
e3575922
...
...
@@ -14,7 +14,7 @@ contract Pausable is Initializable, PauserRole {
bool private _paused;
function initialize(address sender) public initializer {
PauserRole.
_
initialize(sender);
PauserRole.initialize(sender);
_paused = false;
}
...
...
contracts/mocks/CapperRoleMock.sol
View file @
e3575922
...
...
@@ -4,7 +4,7 @@ import "../access/roles/CapperRole.sol";
contract CapperRoleMock is CapperRole {
constructor() public {
CapperRole.
_
initialize(msg.sender);
CapperRole.initialize(msg.sender);
}
function removeCapper(address account) public {
...
...
contracts/mocks/MinterRoleMock.sol
View file @
e3575922
...
...
@@ -4,7 +4,7 @@ import "../access/roles/MinterRole.sol";
contract MinterRoleMock is MinterRole {
constructor() public {
MinterRole.
_
initialize(msg.sender);
MinterRole.initialize(msg.sender);
}
function removeMinter(address account) public {
...
...
contracts/mocks/PauserRoleMock.sol
View file @
e3575922
...
...
@@ -4,7 +4,7 @@ import "../access/roles/PauserRole.sol";
contract PauserRoleMock is PauserRole {
constructor () public {
PauserRole.
_
initialize(msg.sender);
PauserRole.initialize(msg.sender);
}
function removePauser(address account) public {
...
...
contracts/mocks/PullPaymentMock.sol
View file @
e3575922
...
...
@@ -5,7 +5,7 @@ import "../payment/PullPayment.sol";
// mock class using PullPayment
contract PullPaymentMock is PullPayment {
constructor () public payable {
PullPayment.
_
initialize();
PullPayment.initialize();
}
// test helper function to call asyncTransfer
...
...
contracts/mocks/SignatureBouncerMock.sol
View file @
e3575922
...
...
@@ -5,7 +5,7 @@ import "./SignerRoleMock.sol";
contract SignatureBouncerMock is SignatureBouncer, SignerRoleMock {
constructor() public {
SignatureBouncer.
_
initialize(msg.sender);
SignatureBouncer.initialize(msg.sender);
}
function checkValidSignature(address account, bytes memory signature)
...
...
contracts/mocks/SignerRoleMock.sol
View file @
e3575922
...
...
@@ -4,7 +4,7 @@ import "../access/roles/SignerRole.sol";
contract SignerRoleMock is SignerRole {
constructor() public {
SignerRole.
_
initialize(msg.sender);
SignerRole.initialize(msg.sender);
}
function removeSigner(address account) public {
...
...
contracts/mocks/WhitelistAdminRoleMock.sol
View file @
e3575922
...
...
@@ -4,7 +4,7 @@ import "../access/roles/WhitelistAdminRole.sol";
contract WhitelistAdminRoleMock is WhitelistAdminRole {
constructor () public {
WhitelistAdminRole.
_
initialize(msg.sender);
WhitelistAdminRole.initialize(msg.sender);
}
function removeWhitelistAdmin(address account) public {
...
...
contracts/mocks/WhitelistedRoleMock.sol
View file @
e3575922
...
...
@@ -4,7 +4,7 @@ import "../access/roles/WhitelistedRole.sol";
contract WhitelistedRoleMock is WhitelistedRole {
constructor() public {
WhitelistedRole.
_
initialize(msg.sender);
WhitelistedRole.initialize(msg.sender);
}
function onlyWhitelistedMock() public view onlyWhitelisted {
...
...
contracts/payment/PullPayment.sol
View file @
e3575922
...
...
@@ -12,7 +12,7 @@ import "./escrow/Escrow.sol";
contract PullPayment is Initializable {
Escrow private _escrow;
function
_initialize() internal
initializer {
function
initialize() public
initializer {
// conditional added to make initializer idempotent in case of diamond inheritance
if (address(_escrow) == address(0)) {
_escrow = new Escrow();
...
...
contracts/payment/escrow/RefundEscrow.sol
View file @
e3575922
pragma solidity ^0.5.0;
import
'zos-lib/contracts/Initializable.sol'
;
import
"zos-lib/contracts/Initializable.sol"
;
import "./ConditionalEscrow.sol";
...
...
contracts/token/ERC20/ERC20Mintable.sol
View file @
e3575922
...
...
@@ -10,7 +10,7 @@ import "../../access/roles/MinterRole.sol";
*/
contract ERC20Mintable is Initializable, ERC20, MinterRole {
function initialize(address sender) public initializer {
MinterRole.
_
initialize(sender);
MinterRole.initialize(sender);
}
/**
...
...
contracts/token/ERC721/ERC721MetadataMintable.sol
View file @
e3575922
...
...
@@ -13,7 +13,7 @@ contract ERC721MetadataMintable is Initializable, ERC721, ERC721Metadata, Minter
function initialize(address sender) public initializer {
require(ERC721._hasBeenInitialized());
require(ERC721Metadata._hasBeenInitialized());
MinterRole.
_
initialize(sender);
MinterRole.initialize(sender);
}
/**
...
...
contracts/token/ERC721/ERC721Mintable.sol
View file @
e3575922
...
...
@@ -11,7 +11,7 @@ import "../../access/roles/MinterRole.sol";
contract ERC721Mintable is Initializable, ERC721, MinterRole {
function initialize(address sender) public initializer {
require(ERC721._hasBeenInitialized());
MinterRole.
_
initialize(sender);
MinterRole.initialize(sender);
}
/**
...
...
package-lock.json
View file @
e3575922
...
...
@@ -155,7 +155,7 @@
},
"acorn-globals"
:
{
"version"
:
"1.0.9"
,
"resolved"
:
"http
s
://registry.npmjs.org/acorn-globals/-/acorn-globals-1.0.9.tgz"
,
"resolved"
:
"http://registry.npmjs.org/acorn-globals/-/acorn-globals-1.0.9.tgz"
,
"integrity"
:
"sha1-VbtemGkVB7dFedBRNBMhfDgMVM8="
,
"dev"
:
true
,
"optional"
:
true
,
...
...
@@ -165,7 +165,7 @@
"dependencies"
:
{
"acorn"
:
{
"version"
:
"2.7.0"
,
"resolved"
:
"http
s
://registry.npmjs.org/acorn/-/acorn-2.7.0.tgz"
,
"resolved"
:
"http://registry.npmjs.org/acorn/-/acorn-2.7.0.tgz"
,
"integrity"
:
"sha1-q259nYhqrKiwhbwzEreaGYQz8Oc="
,
"dev"
:
true
,
"optional"
:
true
...
...
@@ -457,7 +457,7 @@
},
"axios"
:
{
"version"
:
"0.18.0"
,
"resolved"
:
"http
s
://registry.npmjs.org/axios/-/axios-0.18.0.tgz"
,
"resolved"
:
"http://registry.npmjs.org/axios/-/axios-0.18.0.tgz"
,
"integrity"
:
"sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI="
,
"dev"
:
true
,
"requires"
:
{
...
...
@@ -2758,7 +2758,7 @@
},
"rimraf"
:
{
"version"
:
"2.4.5"
,
"resolved"
:
"http
s
://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz"
,
"resolved"
:
"http://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz"
,
"integrity"
:
"sha1-7nEM5dk6j9uFb7Xqj/Di11k0sto="
,
"dev"
:
true
,
"requires"
:
{
...
...
@@ -3655,7 +3655,7 @@
},
"minimist"
:
{
"version"
:
"1.2.0"
,
"resolved"
:
"http
s
://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz"
,
"resolved"
:
"http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz"
,
"integrity"
:
"sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ="
,
"dev"
:
true
}
...
...
@@ -7187,7 +7187,7 @@
},
"readable-stream"
:
{
"version"
:
"1.1.14"
,
"resolved"
:
"http
s
://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz"
,
"resolved"
:
"http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz"
,
"integrity"
:
"sha1-fPTFTvZI44EwhMY23SB54WbAgdk="
,
"dev"
:
true
,
"requires"
:
{
...
...
@@ -7980,7 +7980,7 @@
},
"jsdom"
:
{
"version"
:
"7.2.2"
,
"resolved"
:
"http
s
://registry.npmjs.org/jsdom/-/jsdom-7.2.2.tgz"
,
"resolved"
:
"http://registry.npmjs.org/jsdom/-/jsdom-7.2.2.tgz"
,
"integrity"
:
"sha1-QLQCdwwr2iNGkJa+6Rq2deOx/G4="
,
"dev"
:
true
,
"optional"
:
true
,
...
...
@@ -8004,7 +8004,7 @@
"dependencies"
:
{
"acorn"
:
{
"version"
:
"2.7.0"
,
"resolved"
:
"http
s
://registry.npmjs.org/acorn/-/acorn-2.7.0.tgz"
,
"resolved"
:
"http://registry.npmjs.org/acorn/-/acorn-2.7.0.tgz"
,
"integrity"
:
"sha1-q259nYhqrKiwhbwzEreaGYQz8Oc="
,
"dev"
:
true
,
"optional"
:
true
...
...
@@ -8725,7 +8725,7 @@
},
"marked"
:
{
"version"
:
"0.3.19"
,
"resolved"
:
"http
s
://registry.npmjs.org/marked/-/marked-0.3.19.tgz"
,
"resolved"
:
"http://registry.npmjs.org/marked/-/marked-0.3.19.tgz"
,
"integrity"
:
"sha512-ea2eGWOqNxPcXv8dyERdSr/6FmzvWwzjMxpfGB/sbMccXoct+xY+YukPD+QTUZwyvK7BZwcr4m21WBOW41pAkg=="
,
"dev"
:
true
},
...
...
@@ -14590,7 +14590,7 @@
},
"scrypt-js"
:
{
"version"
:
"2.0.3"
,
"resolved"
:
"http
s
://registry.npmjs.org/scrypt-js/-/scrypt-js-2.0.3.tgz"
,
"resolved"
:
"http://registry.npmjs.org/scrypt-js/-/scrypt-js-2.0.3.tgz"
,
"integrity"
:
"sha1-uwBAvgMEPamgEqLOqfyfhSz8h9Q="
,
"dev"
:
true
},
...
...
@@ -14985,7 +14985,7 @@
},
"ws"
:
{
"version"
:
"5.1.1"
,
"resolved"
:
"http
s
://registry.npmjs.org/ws/-/ws-5.1.1.tgz"
,
"resolved"
:
"http://registry.npmjs.org/ws/-/ws-5.1.1.tgz"
,
"integrity"
:
"sha512-bOusvpCb09TOBLbpMKszd45WKC2KPtxiyiHanv+H2DE3Az+1db5a/L7sVJZVDPUC1Br8f0SKRr1KjLpD1U/IAw=="
,
"dev"
:
true
,
"requires"
:
{
...
...
@@ -15570,7 +15570,7 @@
},
"web3"
:
{
"version"
:
"0.16.0"
,
"resolved"
:
"http
s
://registry.npmjs.org/web3/-/web3-0.16.0.tgz"
,
"resolved"
:
"http://registry.npmjs.org/web3/-/web3-0.16.0.tgz"
,
"integrity"
:
"sha1-pFVBdc1GKUMDWx8dOUMvdBxrYBk="
,
"dev"
:
true
,
"requires"
:
{
...
...
@@ -17101,7 +17101,7 @@
},
"web3"
:
{
"version"
:
"0.20.6"
,
"resolved"
:
"http
s
://registry.npmjs.org/web3/-/web3-0.20.6.tgz"
,
"resolved"
:
"http://registry.npmjs.org/web3/-/web3-0.20.6.tgz"
,
"integrity"
:
"sha1-PpcwauAk+yThCj11yIQwJWIhUSA="
,
"dev"
:
true
,
"requires"
:
{
...
...
@@ -17131,7 +17131,7 @@
},
"web3"
:
{
"version"
:
"0.20.6"
,
"resolved"
:
"http
s
://registry.npmjs.org/web3/-/web3-0.20.6.tgz"
,
"resolved"
:
"http://registry.npmjs.org/web3/-/web3-0.20.6.tgz"
,
"integrity"
:
"sha1-PpcwauAk+yThCj11yIQwJWIhUSA="
,
"dev"
:
true
,
"requires"
:
{
...
...
@@ -19356,7 +19356,7 @@
},
"load-json-file"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"http
s
://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz"
,
"resolved"
:
"http://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz"
,
"integrity"
:
"sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg="
,
"dev"
:
true
,
"requires"
:
{
...
...
@@ -19387,7 +19387,7 @@
"dependencies"
:
{
"commander"
:
{
"version"
:
"2.15.1"
,
"resolved"
:
"http
s
://registry.npmjs.org/commander/-/commander-2.15.1.tgz"
,
"resolved"
:
"http://registry.npmjs.org/commander/-/commander-2.15.1.tgz"
,
"integrity"
:
"sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag=="
,
"dev"
:
true
},
...
...
@@ -19605,7 +19605,7 @@
},
"web3"
:
{
"version"
:
"0.20.6"
,
"resolved"
:
"http
s
://registry.npmjs.org/web3/-/web3-0.20.6.tgz"
,
"resolved"
:
"http://registry.npmjs.org/web3/-/web3-0.20.6.tgz"
,
"integrity"
:
"sha1-PpcwauAk+yThCj11yIQwJWIhUSA="
,
"dev"
:
true
,
"requires"
:
{
...
...
test/examples/StandardToken.test.js
View file @
e3575922
const
encodeCall
=
require
(
'zos-lib/lib/helpers/encodeCall'
).
default
;
const
{
shouldBehaveLikeERC20Mintable
}
=
require
(
'../token/ERC20/behaviors/ERC20Mintable.behavior'
);
const
{
BN
}
=
require
(
'openzeppelin-test-helpers'
);
...
...
@@ -25,8 +24,8 @@ contract('StandardToken', function ([
async
function
initialize
(
token
,
name
,
symbol
,
decimals
,
initialSupply
,
initialHolder
,
minters
,
pausers
,
from
)
{
const
signature
=
'initialize(string,string,uint8,uint256,address,address[],address[],address)'
;
const
arg
ument
s
=
[
name
,
symbol
,
decimals
,
initialSupply
,
initialHolder
,
minters
,
pausers
,
from
];
await
token
.
methods
[
signature
](...
arg
ument
s
,
{
from
});
const
args
=
[
name
,
symbol
,
decimals
,
initialSupply
,
initialHolder
,
minters
,
pausers
,
from
];
await
token
.
methods
[
signature
](...
args
,
{
from
});
}
context
(
'with all arguments'
,
function
()
{
...
...
test/token/ERC20/StandaloneERC20.test.js
View file @
e3575922
const
encodeCall
=
require
(
'zos-lib/lib/helpers/encodeCall'
).
default
;
const
{
shouldBehaveLikeERC20Mintable
}
=
require
(
'./behaviors/ERC20Mintable.behavior'
);
const
{
shouldFail
,
BN
}
=
require
(
'openzeppelin-test-helpers'
);
...
...
@@ -25,14 +24,14 @@ contract('StandaloneERC20', function ([
async
function
initializeFull
(
token
,
name
,
symbol
,
decimals
,
initialSupply
,
initialHolder
,
minters
,
pausers
,
from
)
{
const
signature
=
'initialize(string,string,uint8,uint256,address,address[],address[],address)'
;
const
arg
ument
s
=
[
name
,
symbol
,
decimals
,
initialSupply
,
initialHolder
,
minters
,
pausers
,
from
];
await
token
.
methods
[
signature
](...
arg
ument
s
,
{
from
});
const
args
=
[
name
,
symbol
,
decimals
,
initialSupply
,
initialHolder
,
minters
,
pausers
,
from
];
await
token
.
methods
[
signature
](...
args
,
{
from
});
}
async
function
initializePartial
(
token
,
name
,
symbol
,
decimals
,
minters
,
pausers
,
from
)
{
const
signature
=
'initialize(string,string,uint8,address[],address[],address)'
;
const
arg
ument
s
=
[
name
,
symbol
,
decimals
,
minters
,
pausers
,
from
];
await
token
.
methods
[
signature
](...
arg
ument
s
,
{
from
});
const
args
=
[
name
,
symbol
,
decimals
,
minters
,
pausers
,
from
];
await
token
.
methods
[
signature
](...
args
,
{
from
});
}
describe
(
'with all arguments'
,
function
()
{
...
...
test/token/ERC721/StandaloneERC721.test.js
View file @
e3575922
const
encodeCall
=
require
(
'zos-lib/lib/helpers/encodeCall'
).
default
;
require
(
'openzeppelin-test-helpers'
);
const
StandaloneERC721
=
artifacts
.
require
(
'StandaloneERC721'
);
...
...
@@ -17,8 +15,8 @@ contract('StandaloneERC721', function ([_, deployer, minterA, minterB, pauserA,
async
function
initialize
(
token
,
name
,
symbol
,
minters
,
pausers
,
from
)
{
const
signature
=
'initialize(string,string,address[],address[],address)'
;
const
arg
ument
s
=
[
name
,
symbol
,
minters
,
pausers
,
from
];
await
token
.
methods
[
signature
](...
arg
ument
s
,
{
from
});
const
args
=
[
name
,
symbol
,
minters
,
pausers
,
from
];
await
token
.
methods
[
signature
](...
args
,
{
from
});
}
it
(
'can be created with no minters'
,
async
function
()
{
...
...
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