Skip to content

Commit

Permalink
Fix test case based on registerModule change
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdossa committed Oct 2, 2018
1 parent c8195a5 commit 840fb8f
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions test/v_tracked_redemptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,6 @@ contract('TrackedRedemption', accounts => {
"TrackedRedemptionFactory contract was not deployed"
);

// STEP 5: Register the Modules with the ModuleRegistry contract

// (A) : Register the GeneralTransferManagerFactory
await I_MRProxied.registerModule(I_GeneralTransferManagerFactory.address, { from: account_polymath });
await I_MRProxied.verifyModule(I_GeneralTransferManagerFactory.address, true, { from: account_polymath });

// (B) : Register the GeneralDelegateManagerFactory
await I_MRProxied.registerModule(I_GeneralPermissionManagerFactory.address, { from: account_polymath });
await I_MRProxied.verifyModule(I_GeneralPermissionManagerFactory.address, true, { from: account_polymath });

// (C) : Register the TrackedRedemptionFactory
await I_MRProxied.registerModule(I_TrackedRedemptionFactory.address, { from: account_polymath });
await I_MRProxied.verifyModule(I_TrackedRedemptionFactory.address, true, { from: account_polymath });

// Step 6: Deploy the STFactory contract

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

// STEP 5: Register the Modules with the ModuleRegistry contract

// (A) : Register the GeneralTransferManagerFactory
await I_MRProxied.registerModule(I_GeneralTransferManagerFactory.address, { from: account_polymath });
await I_MRProxied.verifyModule(I_GeneralTransferManagerFactory.address, true, { from: account_polymath });

// (B) : Register the GeneralDelegateManagerFactory
await I_MRProxied.registerModule(I_GeneralPermissionManagerFactory.address, { from: account_polymath });
await I_MRProxied.verifyModule(I_GeneralPermissionManagerFactory.address, true, { from: account_polymath });

// (C) : Register the TrackedRedemptionFactory
await I_MRProxied.registerModule(I_TrackedRedemptionFactory.address, { from: account_polymath });
await I_MRProxied.verifyModule(I_TrackedRedemptionFactory.address, true, { from: account_polymath });

// Printing all the contract addresses
console.log(`
--------------------- Polymath Network Smart Contracts: ---------------------
Expand Down

0 comments on commit 840fb8f

Please sign in to comment.