update crowdpooling test context

This commit is contained in:
牛涛涛
2021-01-06 10:17:43 +08:00
parent f380356893
commit 517d4ae977

View File

@@ -76,18 +76,21 @@ export class CPContext {
[
cloneFactory.options.address,
dvmTemplate.options.address,
"0x0000000000000000000000000000000000000000",
feeRateModel.options.address,
"0x0000000000000000000000000000000000000000",
defaultGasSource.options.address,
this.Maintainer,
feeRateModel.options.address,
permissionManager.options.address
]
)
this.CP = await contracts.newContract(contracts.CROWD_POOLING_NAME)
this.BASE.methods.mint(this.CP.options.address, config.totalBase).send(this.sendParam(this.Deployer))
this.BASE.methods.mint(this.CP.options.address, config.totalBase).send(this.sendParam(this.Deployer));
await this.Web3.eth.sendTransaction( {
from: this.Deployer,
to:this.CP.options.address,
gas: process.env["COVERAGE"] ? 10000000000 : 7000000,
gasPrice: mweiStr("1000"),
value: decimalStr("0.2"),
});
this.CP.methods.init(
[
@@ -132,4 +135,4 @@ export class CPContext {
async mintTestToken(to: string, token: Contract, amount: string) {
await token.methods.mint(to, amount).send(this.sendParam(this.Deployer));
}
}
}