(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false)
| 619 | // Deploy voting modules |
| 620 | |
| 621 | export async function deployPLCRVoteCheckpoint(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) { |
| 622 | I_PLCRVotingCheckpointLogic = await PLCRVotingCheckpoint.new("0x0000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000", { from: accountPolymath }); |
| 623 | I_PLCRVotingCheckpointFactory = await PLCRVotingCheckpointFactory.new(setupCost, new BN(0), I_PLCRVotingCheckpointLogic.address, I_PolymathRegistry.address, feeInPoly, { from: accountPolymath }); |
| 624 | assert.notEqual( |
| 625 | I_PLCRVotingCheckpointFactory.address.valueOf(), |
| 626 | "0x0000000000000000000000000000000000000000", |
| 627 | "PLCRVotingCheckpointFactory contract was not deployed" |
| 628 | ); |
| 629 | |
| 630 | await registerAndVerifyByMR(I_PLCRVotingCheckpointFactory.address, accountPolymath, MRProxyInstance); |
| 631 | return new Array(I_PLCRVotingCheckpointFactory); |
| 632 | } |
| 633 | // Deploy the voting modules |
| 634 | |
| 635 | export async function deployWeightedVoteCheckpoint(accountPolymath, MRProxyInstance, setupCost, feeInPoly = false) { |
no test coverage detected