difftreelog
Fixing contract tests in progress
in: master
1 file changed
tests/src/util/contracthelpers.tsdiffbeforeafterboth17import { findUnusedAddress } from '../util/helpers';17import { findUnusedAddress } from '../util/helpers';181819const value = 0;19const value = 0;20const gasLimit = 200000n * 1000000n;20const gasLimit = '200000000000';21const endowment = '100000000000000000';21const endowment = '100000000000000000';222223function deployBlueprint(alice: IKeyringPair, code: CodePromise): Promise<Blueprint> {23function deployBlueprint(alice: IKeyringPair, code: CodePromise): Promise<Blueprint> {37function deployContract(alice: IKeyringPair, blueprint: Blueprint) : Promise<any> {37function deployContract(alice: IKeyringPair, blueprint: Blueprint) : Promise<any> {38 return new Promise<any>(async (resolve, reject) => {38 return new Promise<any>(async (resolve, reject) => {39 const initValue = true;39 const initValue = true;40 const constructorIndex = 0;4142 // const unsub = await blueprint43 // .createContract(constructorIndex, { gasLimit: gasLimit, salt: null, value: endowment }, initValue)4445 // const unsub = await blueprint.tx46 // .new({ gasLimit: gasLimit, salt: null, value: endowment }, initValue)404741 const unsub = await blueprint.tx48 const unsub = await blueprint.tx42 .new(endowment, gasLimit, initValue)49 .new(endowment, gasLimit, initValue)