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

9 lines • 439 B
import { UpgradesError } from '@openzeppelin/upgrades-core'; export async function getInitialOwner(opts, signer) { const result = opts.initialOwner ?? (await signer?.getAddress()) ?? undefined; if (result === undefined) { throw new UpgradesError('Initial owner must be specified', () => `Set the initial owner address using the \`initialOwner\` option`); } return result; } //# sourceMappingURL=initial-owner.js.map