(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false)
| 433 | /// Deploy the Permission Manager |
| 434 | |
| 435 | export async function deployGPMAndVerifyed(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) { |
| 436 | I_GeneralPermissionManagerLogic = await GeneralPermissionManager.new("0x0000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000", { from: accountPolymath }); |
| 437 | I_GeneralPermissionManagerFactory = await GeneralPermissionManagerFactory.new(setupCost, new BN(0), I_GeneralPermissionManagerLogic.address, I_PolymathRegistry.address, feeInPoly, { from: accountPolymath }); |
| 438 | |
| 439 | assert.notEqual( |
| 440 | I_GeneralPermissionManagerFactory.address.valueOf(), |
| 441 | "0x0000000000000000000000000000000000000000", |
| 442 | "GeneralPermissionManagerFactory contract was not deployed" |
| 443 | ); |
| 444 | |
| 445 | // (B) : Register the GeneralDelegateManagerFactory |
| 446 | await registerAndVerifyByMR(I_GeneralPermissionManagerFactory.address, accountPolymath, MRProxyInstance); |
| 447 | return Promise.all(new Array(I_GeneralPermissionManagerFactory)); |
| 448 | } |
| 449 | |
| 450 | /// Deploy the STO Modules |
| 451 |
no test coverage detected