From 644819ececd0e4d22f51fc390b2340dc46e4ab43 Mon Sep 17 00:00:00 2001 From: chao Date: Wed, 4 May 2022 18:48:07 +0000 Subject: [PATCH] tune some params for fitting arbitrium testnet --- cli/ts/deployPoll.ts | 1 + cli/ts/publish.ts | 2 +- contracts/hardhat.config.js | 13 +++++++------ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/cli/ts/deployPoll.ts b/cli/ts/deployPoll.ts index 48377be6a7..f92a318446 100644 --- a/cli/ts/deployPoll.ts +++ b/cli/ts/deployPoll.ts @@ -184,6 +184,7 @@ const deployPoll = async (args: any) => { voteOptionTreeDepth, }, unserialisedPubkey.asContractParam(), + { gasLimit: 10000000 } ) const receipt = await tx.wait() const iface = maciContract.interface diff --git a/cli/ts/publish.ts b/cli/ts/publish.ts index ef82fe4932..81e5097006 100644 --- a/cli/ts/publish.ts +++ b/cli/ts/publish.ts @@ -318,7 +318,7 @@ const publish = async (args: any) => { tx = await pollContractEthers.publishMessage( message.asContractParam(), encKeypair.pubKey.asContractParam(), - { gasLimit: 1000000 }, + { gasLimit: 10000000 }, ) await tx.wait() diff --git a/contracts/hardhat.config.js b/contracts/hardhat.config.js index 1a34acbb6d..dcd23615a6 100644 --- a/contracts/hardhat.config.js +++ b/contracts/hardhat.config.js @@ -6,13 +6,14 @@ require('@nomiclabs/hardhat-ethers') require('hardhat-artifactor') module.exports = { - solidity: "0.7.2", - settings: { - optimizer: { - enabled: true, - runs: 200 + solidity: { + version: "0.7.2", + settings: { + optimizer: { + enabled: true, + runs: 100 + } } - }, networks: { hardhat: {