Skip to content

Commit

Permalink
Merge pull request #1076 from nomiclabs/etherscan-report-constructor-…
Browse files Browse the repository at this point in the history
…library

Report error caused by a library in a constructor
  • Loading branch information
alcuadrado authored Dec 2, 2020
2 parents 04cacf0 + ecfe42e commit 105336e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/hardhat-etherscan/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ ${nameList}`;
throw new NomicLabsHardhatPluginError(
pluginName,
`The contract ${contractInformation.sourceName}:${contractInformation.contractName} has one or more library references that cannot be detected from deployed bytecode.
This can occur if the library is only called in the contract constructor.`
This can occur if the library is only called in the contract constructor.`,
undefined,
true
);
}

Expand Down

0 comments on commit 105336e

Please sign in to comment.