Skip to content

Commit 840fb8f

Browse files
committed
Fix test case based on registerModule change
1 parent c8195a5 commit 840fb8f

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

test/v_tracked_redemptions.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -148,19 +148,6 @@ contract('TrackedRedemption', accounts => {
148148
"TrackedRedemptionFactory contract was not deployed"
149149
);
150150

151-
// STEP 5: Register the Modules with the ModuleRegistry contract
152-
153-
// (A) : Register the GeneralTransferManagerFactory
154-
await I_MRProxied.registerModule(I_GeneralTransferManagerFactory.address, { from: account_polymath });
155-
await I_MRProxied.verifyModule(I_GeneralTransferManagerFactory.address, true, { from: account_polymath });
156-
157-
// (B) : Register the GeneralDelegateManagerFactory
158-
await I_MRProxied.registerModule(I_GeneralPermissionManagerFactory.address, { from: account_polymath });
159-
await I_MRProxied.verifyModule(I_GeneralPermissionManagerFactory.address, true, { from: account_polymath });
160-
161-
// (C) : Register the TrackedRedemptionFactory
162-
await I_MRProxied.registerModule(I_TrackedRedemptionFactory.address, { from: account_polymath });
163-
await I_MRProxied.verifyModule(I_TrackedRedemptionFactory.address, true, { from: account_polymath });
164151

165152
// Step 6: Deploy the STFactory contract
166153

@@ -195,6 +182,20 @@ contract('TrackedRedemption', accounts => {
195182
await I_PolymathRegistry.changeAddress("SecurityTokenRegistry", I_SecurityTokenRegistryProxy.address, {from: account_polymath});
196183
await I_MRProxied.updateFromRegistry({from: account_polymath});
197184

185+
// STEP 5: Register the Modules with the ModuleRegistry contract
186+
187+
// (A) : Register the GeneralTransferManagerFactory
188+
await I_MRProxied.registerModule(I_GeneralTransferManagerFactory.address, { from: account_polymath });
189+
await I_MRProxied.verifyModule(I_GeneralTransferManagerFactory.address, true, { from: account_polymath });
190+
191+
// (B) : Register the GeneralDelegateManagerFactory
192+
await I_MRProxied.registerModule(I_GeneralPermissionManagerFactory.address, { from: account_polymath });
193+
await I_MRProxied.verifyModule(I_GeneralPermissionManagerFactory.address, true, { from: account_polymath });
194+
195+
// (C) : Register the TrackedRedemptionFactory
196+
await I_MRProxied.registerModule(I_TrackedRedemptionFactory.address, { from: account_polymath });
197+
await I_MRProxied.verifyModule(I_TrackedRedemptionFactory.address, true, { from: account_polymath });
198+
198199
// Printing all the contract addresses
199200
console.log(`
200201
--------------------- Polymath Network Smart Contracts: ---------------------

0 commit comments

Comments
 (0)