MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / deployCountTMAndVerifyed

Function deployCountTMAndVerifyed

test/helpers/createInstances.js:353–365  ·  view source on GitHub ↗
(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false)

Source from the content-addressed store, hash-verified

351}
352
353export async function deployCountTMAndVerifyed(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) {
354 I_CountTransferManagerLogic = await CountTransferManager.new("0x0000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000", { from: accountPolymath });
355 I_CountTransferManagerFactory = await CountTransferManagerFactory.new(setupCost, new BN(0), I_CountTransferManagerLogic.address, I_PolymathRegistry.address, feeInPoly, { from: accountPolymath });
356
357 assert.notEqual(
358 I_CountTransferManagerFactory.address.valueOf(),
359 "0x0000000000000000000000000000000000000000",
360 "CountTransferManagerFactory contract was not deployed"
361 );
362
363 await registerAndVerifyByMR(I_CountTransferManagerFactory.address, accountPolymath, MRProxyInstance);
364 return Promise.all(new Array(I_CountTransferManagerFactory));
365}
366
367export async function deployManualApprovalTMAndVerifyed(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) {
368 I_ManualApprovalTransferManagerLogic = await ManualApprovalTransferManager.new("0x0000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000", { from: accountPolymath });

Calls 1

registerAndVerifyByMRFunction · 0.85

Tested by

no test coverage detected