Skip to content

Commit

Permalink
Report error caused by a library in a constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Dec 2, 2020
1 parent 04cacf0 commit ecfe42e
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 ecfe42e

Please sign in to comment.