Skip to content

Commit bf8c21b

Browse files
committed
tests fixed
1 parent 4e5883b commit bf8c21b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

test/n_security_token_registry.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const SecurityTokenRegistry = artifacts.require("./SecurityTokenRegistry.sol");
1212
const SecurityTokenRegistryMock = artifacts.require("./SecurityTokenRegistryMock.sol");
1313
const STFactory = artifacts.require("./STFactory.sol");
1414
const STRGetter = artifacts.require('./STRGetter.sol');
15+
const DataStoreLogic = artifacts.require('./DataStore.sol');
16+
const DataStoreFactory = artifacts.require('./DataStoreFactory.sol');
1517

1618
const Web3 = require("web3");
1719
let BN = Web3.utils.BN;
@@ -572,8 +574,10 @@ contract("SecurityTokenRegistry", async (accounts) => {
572574
describe("Generate SecurityToken v2", async () => {
573575
it("Should deploy the st version 2", async () => {
574576
// Step 7: Deploy the STFactory contract
577+
let I_DataStoreLogic = await DataStoreLogic.new({ from: account_polymath });
578+
let I_DataStoreFactory = await DataStoreFactory.new(I_DataStoreLogic.address, { from: account_polymath });
575579

576-
I_STFactory002 = await STFactory.new(I_GeneralTransferManagerFactory.address, { from: account_polymath });
580+
I_STFactory002 = await STFactory.new(I_GeneralTransferManagerFactory.address, I_DataStoreFactory.address, { from: account_polymath });
577581

578582
assert.notEqual(
579583
I_STFactory002.address.valueOf(),

test/u_module_registry_proxy.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const GeneralTransferManagerLogic = artifacts.require("./GeneralTransferManager.
1313
const GeneralTransferManagerFactory = artifacts.require("./GeneralTransferManagerFactory.sol");
1414
const GeneralPermissionManagerFactory = artifacts.require("./GeneralPermissionManagerFactory.sol");
1515
const GeneralPermissionManager = artifacts.require("./GeneralPermissionManager.sol");
16+
const DataStoreLogic = artifacts.require('./DataStore.sol');
17+
const DataStoreFactory = artifacts.require('./DataStoreFactory.sol');
1618

1719
const Web3 = require("web3");
1820
let BN = Web3.utils.BN;
@@ -151,7 +153,9 @@ contract("ModuleRegistryProxy", async (accounts) => {
151153
await I_MRProxied.verifyModule(I_GeneralTransferManagerFactory.address, true, { from: account_polymath });
152154

153155
// Step 3: Deploy the STFactory contract
154-
I_STFactory = await STFactory.new(I_GeneralTransferManagerFactory.address, { from: account_polymath });
156+
let I_DataStoreLogic = await DataStoreLogic.new({ from: account_polymath });
157+
let I_DataStoreFactory = await DataStoreFactory.new(I_DataStoreLogic.address, { from: account_polymath });
158+
I_STFactory = await STFactory.new(I_GeneralTransferManagerFactory.address, I_DataStoreFactory.address, { from: account_polymath });
155159

156160
assert.notEqual(I_STFactory.address.valueOf(), address_zero, "STFactory contract was not deployed");
157161
});

0 commit comments

Comments
 (0)