Skip to content

Commit

Permalink
update constructor in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0age committed Jun 14, 2022
1 parent e516d11 commit 3b0f194
Showing 1 changed file with 14 additions and 56 deletions.
70 changes: 14 additions & 56 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,7 @@ describe(`Consideration (version: ${VERSION}) — initial test suite`, function
"PausableZoneController",
owner
);
const gpDeployer = await GPDeployer.deploy(
owner.address,
ethers.utils.formatBytes32String("0")
);
const gpDeployer = await GPDeployer.deploy(owner.address);

const zoneAddr = await createZone(gpDeployer);

Expand Down Expand Up @@ -247,10 +244,7 @@ describe(`Consideration (version: ${VERSION}) — initial test suite`, function
"PausableZoneController",
owner
);
const gpDeployer = await GPDeployer.deploy(
owner.address,
ethers.utils.formatBytes32String("0")
);
const gpDeployer = await GPDeployer.deploy(owner.address);

const zoneAddr = await createZone(gpDeployer);

Expand Down Expand Up @@ -321,10 +315,7 @@ describe(`Consideration (version: ${VERSION}) — initial test suite`, function
"PausableZoneController",
owner
);
const gpDeployer = await GPDeployer.deploy(
owner.address,
ethers.utils.formatBytes32String("0")
);
const gpDeployer = await GPDeployer.deploy(owner.address);

// Deploy Pausable Zone
const zoneAddr = await createZone(gpDeployer);
Expand Down Expand Up @@ -493,10 +484,7 @@ describe(`Consideration (version: ${VERSION}) — initial test suite`, function
"PausableZoneController",
owner
);
const gpDeployer = await GPDeployer.deploy(
owner.address,
ethers.utils.formatBytes32String("0")
);
const gpDeployer = await GPDeployer.deploy(owner.address);

// Deploy Global Pausable zone
const zoneAddr = await createZone(gpDeployer);
Expand Down Expand Up @@ -671,10 +659,7 @@ describe(`Consideration (version: ${VERSION}) — initial test suite`, function
owner
);

const gpDeployer = await GPDeployer.deploy(
owner.address,
ethers.utils.formatBytes32String("0")
);
const gpDeployer = await GPDeployer.deploy(owner.address);

// deploy GP from non-deployer owner
const salt = randomHex();
Expand All @@ -692,10 +677,7 @@ describe(`Consideration (version: ${VERSION}) — initial test suite`, function
"PausableZoneController",
owner
);
const gpDeployer = await GPDeployer.deploy(
owner.address,
ethers.utils.formatBytes32String("0")
);
const gpDeployer = await GPDeployer.deploy(owner.address);

// deploy GP
const zoneAddr = await createZone(gpDeployer);
Expand Down Expand Up @@ -740,10 +722,7 @@ describe(`Consideration (version: ${VERSION}) — initial test suite`, function
"PausableZoneController",
owner
);
const gpDeployer = await GPDeployer.deploy(
owner.address,
ethers.utils.formatBytes32String("0")
);
const gpDeployer = await GPDeployer.deploy(owner.address);

// deploy GP
const zoneAddr = await createZone(gpDeployer);
Expand Down Expand Up @@ -788,10 +767,7 @@ describe(`Consideration (version: ${VERSION}) — initial test suite`, function
"PausableZoneController",
owner
);
const gpDeployer = await GPDeployer.deploy(
owner.address,
ethers.utils.formatBytes32String("0")
);
const gpDeployer = await GPDeployer.deploy(owner.address);

// deploy GP
const zoneAddr = await createZone(gpDeployer);
Expand All @@ -807,10 +783,7 @@ describe(`Consideration (version: ${VERSION}) — initial test suite`, function
"PausableZoneController",
owner
);
const gpDeployer = await GPDeployer.deploy(
owner.address,
ethers.utils.formatBytes32String("0")
);
const gpDeployer = await GPDeployer.deploy(owner.address);

// deploy PausableZone
const zoneAddress = await createZone(gpDeployer);
Expand Down Expand Up @@ -856,10 +829,7 @@ describe(`Consideration (version: ${VERSION}) — initial test suite`, function
"PausableZoneController",
owner
);
const gpDeployer = await GPDeployer.deploy(
owner.address,
ethers.utils.formatBytes32String("0")
);
const gpDeployer = await GPDeployer.deploy(owner.address);

// deploy PausableZone
const zoneAddress = await createZone(gpDeployer);
Expand Down Expand Up @@ -924,10 +894,7 @@ describe(`Consideration (version: ${VERSION}) — initial test suite`, function
"PausableZoneController",
owner
);
const gpDeployer = await GPDeployer.deploy(
owner.address,
ethers.utils.formatBytes32String("0")
);
const gpDeployer = await GPDeployer.deploy(owner.address);

// deploy PausableZone
const zoneAddress = await createZone(gpDeployer);
Expand Down Expand Up @@ -960,10 +927,7 @@ describe(`Consideration (version: ${VERSION}) — initial test suite`, function
"PausableZoneController",
owner
);
const gpDeployer = await GPDeployer.deploy(
owner.address,
ethers.utils.formatBytes32String("0")
);
const gpDeployer = await GPDeployer.deploy(owner.address);

// deploy GP
await createZone(gpDeployer);
Expand Down Expand Up @@ -998,10 +962,7 @@ describe(`Consideration (version: ${VERSION}) — initial test suite`, function
"PausableZoneController",
owner
);
const gpDeployer = await GPDeployer.deploy(
owner.address,
ethers.utils.formatBytes32String("0")
);
const gpDeployer = await GPDeployer.deploy(owner.address);

// deploy GP
const zoneAddr = await createZone(gpDeployer);
Expand Down Expand Up @@ -1040,10 +1001,7 @@ describe(`Consideration (version: ${VERSION}) — initial test suite`, function
"PausableZoneController",
owner
);
const gpDeployer = await GPDeployer.deploy(
owner.address,
ethers.utils.formatBytes32String("0")
);
const gpDeployer = await GPDeployer.deploy(owner.address);

// deploy GP
await createZone(gpDeployer);
Expand Down

0 comments on commit 3b0f194

Please sign in to comment.