UNPKG

@nomicfoundation/hardhat-verify

Version:
15 lines 787 B
import { ETHERSCAN_PROVIDER_NAME } from "../../../etherscan.js"; import { verifyContract } from "../../../verification.js"; import { resolveConstructorArgs, resolveLibraries, } from "../../arg-resolution.js"; const verifyEtherscanAction = async ({ constructorArgs, constructorArgsPath, librariesPath, ...verifyActionArgs }, hre) => { const resolvedConstructorArgs = await resolveConstructorArgs(constructorArgs, constructorArgsPath); const resolvedLibraries = await resolveLibraries(librariesPath); await verifyContract({ ...verifyActionArgs, constructorArgs: resolvedConstructorArgs, libraries: resolvedLibraries, provider: ETHERSCAN_PROVIDER_NAME, }, hre); }; export default verifyEtherscanAction; //# sourceMappingURL=task-action.js.map