@ensuro/core 2.0.0-beta5 → 2.0.0-beta6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/test-utils.js +3 -5
- package/package.json +1 -1
package/js/test-utils.js
CHANGED
|
@@ -176,9 +176,7 @@ exports.deployPool = async function (hre, options) {
|
|
|
176
176
|
await policyNFT.deployed();
|
|
177
177
|
|
|
178
178
|
// Deploy AccessManager
|
|
179
|
-
const accessManager = await hre.upgrades.deployProxy(AccessManager, [
|
|
180
|
-
options.policyPoolDetAddress || ethers.constants.AddressZero,
|
|
181
|
-
], {kind: 'uups'});
|
|
179
|
+
const accessManager = await hre.upgrades.deployProxy(AccessManager, [], { kind: "uups" });
|
|
182
180
|
|
|
183
181
|
await accessManager.deployed();
|
|
184
182
|
|
|
@@ -187,14 +185,14 @@ exports.deployPool = async function (hre, options) {
|
|
|
187
185
|
[options.treasuryAddress || ethers.constants.AddressZero],
|
|
188
186
|
{
|
|
189
187
|
constructorArgs: [accessManager.address, policyNFT.address, options.currency],
|
|
190
|
-
kind:
|
|
188
|
+
kind: "uups",
|
|
191
189
|
unsafeAllow: ["delegatecall"],
|
|
192
190
|
}
|
|
193
191
|
);
|
|
194
192
|
|
|
195
193
|
await policyPool.deployed();
|
|
196
194
|
|
|
197
|
-
for (const role of
|
|
195
|
+
for (const role of options.grantRoles || []) {
|
|
198
196
|
await grantRole(hre, accessManager, role);
|
|
199
197
|
}
|
|
200
198
|
|