Skip to content

Commit 4e5883b

Browse files
committed
Fixed create instance helper
1 parent 9348598 commit 4e5883b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/helpers/createInstances.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ const DummySTO = artifacts.require("./DummySTO.sol");
3939
const MockBurnFactory = artifacts.require("./MockBurnFactory.sol");
4040
const STRGetter = artifacts.require("./STRGetter.sol");
4141
const MockWrongTypeFactory = artifacts.require("./MockWrongTypeFactory.sol");
42+
const DataStoreLogic = artifacts.require('./DataStore.sol');
43+
const DataStoreFactory = artifacts.require('./DataStoreFactory.sol');
4244

4345
const Web3 = require("web3");
4446
let BN = Web3.utils.BN;
@@ -195,7 +197,9 @@ async function deployGTM(account_polymath) {
195197
}
196198

197199
async function deploySTFactory(account_polymath) {
198-
I_STFactory = await STFactory.new(I_GeneralTransferManagerFactory.address, { from: account_polymath });
200+
let I_DataStoreLogic = await DataStoreLogic.new({ from: account_polymath });
201+
let I_DataStoreFactory = await DataStoreFactory.new(I_DataStoreLogic.address, { from: account_polymath });
202+
I_STFactory = await STFactory.new(I_GeneralTransferManagerFactory.address, I_DataStoreFactory.address, { from: account_polymath });
199203

200204
assert.notEqual(I_STFactory.address.valueOf(), "0x0000000000000000000000000000000000000000", "STFactory contract was not deployed");
201205

0 commit comments

Comments
 (0)