@openzeppelin/hardhat-upgrades
Version:
[](https://docs.openzeppelin.com/upgrades-plugins/hardhat-upgrades) [](https://www.npmjs.org/package/@openzeppelin/h
16 lines • 711 B
JavaScript
import { withValidationDefaults, } from '@openzeppelin/upgrades-core';
/**
* Fills in the engine-relevant defaults for the upgrade options. The client-specific transaction
* options (ethers `txOverrides`, viem `gas`/`value`/...) are handled by the bindings, not here.
*/
export function withDefaults(opts = {}) {
return {
constructorArgs: opts.constructorArgs ?? [],
timeout: opts.timeout ?? 60e3,
pollingInterval: opts.pollingInterval ?? 5e3,
useDeployedImplementation: opts.useDeployedImplementation ?? false,
redeployImplementation: opts.redeployImplementation ?? 'onchange',
...withValidationDefaults(opts),
};
}
//# sourceMappingURL=options.js.map