Skip to content

Commit

Permalink
tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsam4 committed Jan 15, 2019
1 parent 12cb8dc commit 535371b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 6 additions & 2 deletions test/n_security_token_registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const SecurityTokenRegistryProxy = artifacts.require("./SecurityTokenRegistryPro
const SecurityTokenRegistry = artifacts.require("./SecurityTokenRegistry.sol");
const SecurityTokenRegistryMock = artifacts.require("./SecurityTokenRegistryMock.sol");
const STFactory = artifacts.require("./STFactory.sol");

const STRGetter = artifacts.require('./STRGetter.sol');
const DataStoreLogic = artifacts.require('./DataStore.sol');
const DataStoreFactory = artifacts.require('./DataStoreFactory.sol');

const Web3 = require("web3");
const BigNumber = require("bignumber.js");
Expand Down Expand Up @@ -555,8 +557,10 @@ contract("SecurityTokenRegistry", accounts => {
describe("Generate SecurityToken v2", async () => {
it("Should deploy the st version 2", async () => {
// Step 7: Deploy the STFactory contract
let I_DataStoreLogic = await DataStoreLogic.new({ from: account_polymath });
let I_DataStoreFactory = await DataStoreFactory.new(I_DataStoreLogic.address, { from: account_polymath });

I_STFactory002 = await STFactory.new(I_GeneralTransferManagerFactory.address, { from: account_polymath });
I_STFactory002 = await STFactory.new(I_GeneralTransferManagerFactory.address, I_DataStoreFactory.address, { from: account_polymath });

assert.notEqual(
I_STFactory002.address.valueOf(),
Expand Down
7 changes: 6 additions & 1 deletion test/u_module_registry_proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ const STFactory = artifacts.require("./STFactory.sol");
const SecurityToken = artifacts.require("./SecurityToken.sol");
const GeneralTransferManagerFactory = artifacts.require("./GeneralTransferManagerFactory.sol");
const GeneralPermissionManagerFactory = artifacts.require("./GeneralPermissionManagerFactory.sol");
const GeneralPermissionManager = artifacts.require("./GeneralPermissionManager.sol");
const DataStoreLogic = artifacts.require('./DataStore.sol');
const DataStoreFactory = artifacts.require('./DataStoreFactory.sol');

const Web3 = require("web3");
const BigNumber = require("bignumber.js");
Expand Down Expand Up @@ -139,7 +142,9 @@ contract("ModuleRegistryProxy", accounts => {
await I_MRProxied.verifyModule(I_GeneralTransferManagerFactory.address, true, { from: account_polymath });

// Step 3: Deploy the STFactory contract
I_STFactory = await STFactory.new(I_GeneralTransferManagerFactory.address, { from: account_polymath });
let I_DataStoreLogic = await DataStoreLogic.new({ from: account_polymath });
let I_DataStoreFactory = await DataStoreFactory.new(I_DataStoreLogic.address, { from: account_polymath });
I_STFactory = await STFactory.new(I_GeneralTransferManagerFactory.address, I_DataStoreFactory.address, { from: account_polymath });

assert.notEqual(
I_STFactory.address.valueOf(),
Expand Down

0 comments on commit 535371b

Please sign in to comment.