This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $ yarn hardhat run --network mainnet scripts/deploy.ts | |
import {BigNumber} from '@ethersproject/bignumber'; | |
import {formatUnits, parseUnits} from '@ethersproject/units'; | |
import {ethers} from 'hardhat'; | |
async function main() { | |
const gasPrice = await waitForGasPriceBelow(parseUnits('40', 'gwei')); | |
const Greeter = await ethers.getContractFactory('Greeter'); |