wighawag / hardhat-deploy

hardhat deployment plugin
MIT License
1.2k stars 296 forks source link

add progress info #243

Closed drortirosh closed 2 years ago

drortirosh commented 2 years ago

it would be great to add a --progress cmdline to show what is getting deployed (or reused)

I use the following deploy wrapper function:

  async function deploy (name: string, options: DeployOptions): Promise<DeployResult> {
    console.log('Deploying: ', name)
    const res = await hre.deployments.deploy(name, options)
    console.log(name, res.address, res.newlyDeployed === true ? 'newlyDeployed' : '(not modified)')
    return res
  }
wighawag commented 2 years ago

you can set the log option to true for that

like

deploy({from: deployer, log: true}...)

drortirosh commented 2 years ago

thanks. just found that (missed it in the readme..) still, it doesn't say anything if this is newlyDeployed or existing contract (e.g. I care less about the TX and gas if it was already deployed. - but I still want to see the contract address)

wighawag commented 2 years ago

It does says "reusing ..." when existing and give the contract address and mention new deployment