(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false)
| 463 | } |
| 464 | |
| 465 | export async function deployCappedSTOAndVerifyed(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) { |
| 466 | I_CappedSTOLogic = await CappedSTO.new("0x0000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000", { from: accountPolymath }); |
| 467 | I_CappedSTOFactory = await CappedSTOFactory.new(setupCost, new BN(0), I_CappedSTOLogic.address, I_PolymathRegistry.address, feeInPoly, { from: accountPolymath }); |
| 468 | assert.notEqual( |
| 469 | I_CappedSTOFactory.address.valueOf(), |
| 470 | "0x0000000000000000000000000000000000000000", |
| 471 | "CappedSTOFactory contract was not deployed" |
| 472 | ); |
| 473 | |
| 474 | await registerAndVerifyByMR(I_CappedSTOFactory.address, accountPolymath, MRProxyInstance); |
| 475 | return Promise.all(new Array(I_CappedSTOFactory)); |
| 476 | } |
| 477 | |
| 478 | export async function deployPresaleSTOAndVerified(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) { |
| 479 | I_PreSaleSTOLogic = await PreSaleSTO.new("0x0000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000", { from: accountPolymath }); |
no test coverage detected