Created
March 4, 2021 14:55
-
-
Save gitpusha/3ebba0e7828855e9de656bdf7b54a786 to your computer and use it in GitHub Desktop.
This file contains 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
module.exports = async (hre) => { | |
const { deployments } = hre; | |
const { deploy } = deployments; | |
const { deployer } = await hre.getNamedAccounts(); | |
// the following will only deploy "MockGelatoGasPriceOracle" | |
// if the contract was never deployed or if the code changed since last deployment | |
await deploy("MockGelatoGasPriceOracle", { | |
from: deployer, | |
args: [hre.ethers.utils.parseUnits("40", "gwei")], | |
log: hre.network.name != "hardhat" ? true : false, | |
}); | |
}; | |
module.exports.skip = async (hre) => { | |
const skip = | |
hre.network.name === "mainnet" || | |
hre.network.name === "rinkeby" || | |
hre.network.name === "ropstenCI" || | |
hre.network.name === "ropsten"; | |
return skip ? true : false; | |
}; | |
module.exports.tags = ["MockGelatoGasPriceOracle"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment