UNPKG

@openzeppelin/hardhat-upgrades

Version:

[![Docs](https://img.shields.io/badge/docs-%F0%9F%93%84-blue)](https://docs.openzeppelin.com/upgrades-plugins/hardhat-upgrades) [![NPM Package](https://img.shields.io/npm/v/@openzeppelin/hardhat-upgrades.svg)](https://www.npmjs.org/package/@openzeppelin/h

16 lines • 711 B
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