Skip to content

Commit

Permalink
tune some params for fitting arbitrium testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosma committed May 6, 2022
1 parent 30a9bf6 commit 644819e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions cli/ts/deployPoll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ const deployPoll = async (args: any) => {
voteOptionTreeDepth,
},
unserialisedPubkey.asContractParam(),
{ gasLimit: 10000000 }
)
const receipt = await tx.wait()
const iface = maciContract.interface
Expand Down
2 changes: 1 addition & 1 deletion cli/ts/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
13 changes: 7 additions & 6 deletions contracts/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 644819e

Please sign in to comment.