openzeppelin-upgrades icon indicating copy to clipboard operation
openzeppelin-upgrades copied to clipboard

Provide a way to estimate gas for proxy deployments

Open ericglau opened this issue 3 years ago • 2 comments

Deployments using the upgrades plugins can involve deploying a number of contracts, some of which can include the implementation, proxy admin, proxy contract, beacon contract.

If an account does not have sufficient funds to cover deploying all of those contracts, only some of those contracts may be deployed. This results in either needing to add additional funds to the account, or users might just start using the implementation contract directly.

As suggested in this forum post, consider providing a way to estimate gas for all of the contracts that will be deployed by a command.

ericglau avatar Apr 27 '22 20:04 ericglau

Related to #85 Also test that if gas limit is below the estimated gas cost of a contract deployment, an error should occur without having a transaction deploy and revert.

ericglau avatar Apr 27 '22 20:04 ericglau

Any update on this? It would be a nice feature as "deploy and pray" is quite daunting ;)

JavierFerrerGomez avatar Dec 21 '23 09:12 JavierFerrerGomez