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

12 lines • 708 B
import { getDeployData as engineGetDeployData } from '../engine/deploy-impl.js'; import { makeEthersBinding, contractInfo } from '../ethers-binding.js'; /** * Ethers-flavored adapter over the engine's `getDeployData`, kept for the Defender deploy path * (`src/defender/deploy.ts`) and `deployContract`, which derive the deployment's contract name, * validations, and encoded constructor bytecode from an ethers `ContractFactory`. */ export async function getDeployData(hre, ImplFactory, opts, connection) { const binding = makeEthersBinding(hre, connection, ImplFactory.runner, opts); return engineGetDeployData(binding, contractInfo(ImplFactory), opts); } //# sourceMappingURL=deploy-impl.js.map