From b5214e36e27939fa679b15db35bbda76c21bed3a Mon Sep 17 00:00:00 2001 From: Greg Zaitsev Date: Sun, 31 Jan 2021 11:32:06 +0000 Subject: [PATCH] Fixing contract tests in progress --- --- a/tests/src/util/contracthelpers.ts +++ b/tests/src/util/contracthelpers.ts @@ -17,7 +17,7 @@ import { findUnusedAddress } from '../util/helpers'; const value = 0; -const gasLimit = 200000n * 1000000n; +const gasLimit = '200000000000'; const endowment = '100000000000000000'; function deployBlueprint(alice: IKeyringPair, code: CodePromise): Promise { @@ -37,6 +37,13 @@ function deployContract(alice: IKeyringPair, blueprint: Blueprint) : Promise { return new Promise(async (resolve, reject) => { const initValue = true; + const constructorIndex = 0; + + // const unsub = await blueprint + // .createContract(constructorIndex, { gasLimit: gasLimit, salt: null, value: endowment }, initValue) + + // const unsub = await blueprint.tx + // .new({ gasLimit: gasLimit, salt: null, value: endowment }, initValue) const unsub = await blueprint.tx .new(endowment, gasLimit, initValue) -- gitstuff