Skip to content

Instantly share code, notes, and snippets.

@gitpusha
Created March 4, 2021 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gitpusha/3ebba0e7828855e9de656bdf7b54a786 to your computer and use it in GitHub Desktop.
Save gitpusha/3ebba0e7828855e9de656bdf7b54a786 to your computer and use it in GitHub Desktop.
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