Skip to content

Commit

Permalink
fix(maci): removed unneded max fee calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 committed Nov 30, 2022
1 parent 5ef5ed8 commit 14ee2a5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions contracts/ts/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as fs from 'fs'
import * as path from 'path'
const { ethers } = require('hardhat')
import { BigNumber } from 'ethers'

const abiDir = path.join(__dirname, '..', 'artifacts')
const solDir = path.join(__dirname, '..', 'contracts')
Expand Down Expand Up @@ -123,7 +122,7 @@ const deployTopupCredit = async () => {
const topupCreditFactory = await ethers.getContractFactory('TopupCredit', signer)
const gasFees = await signer.provider.getFeeData()
return await topupCreditFactory.deploy({
maxFeePerGas: BigNumber.from(gasFees['maxFeePerGas']).mul(2),
maxFeePerGas: gasFees['maxFeePerGas'],
})
}

Expand All @@ -132,7 +131,7 @@ const deployVkRegistry = async () => {
const vkRegistryFactory = await ethers.getContractFactory('VkRegistry', signer)
const gasFees = await signer.provider.getFeeData()
return await vkRegistryFactory.deploy({
maxFeePerGas: BigNumber.from(gasFees['maxFeePerGas']).mul(2),
maxFeePerGas: gasFees['maxFeePerGas'],
})
}

Expand Down

0 comments on commit 14ee2a5

Please sign in to comment.