From ecfe42e08259e1a2478ed9be281b786de9e8191f Mon Sep 17 00:00:00 2001 From: Franco Victorio Date: Wed, 2 Dec 2020 10:20:28 -0300 Subject: [PATCH] Report error caused by a library in a constructor --- packages/hardhat-etherscan/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/hardhat-etherscan/src/index.ts b/packages/hardhat-etherscan/src/index.ts index feb1b45d94..e1ddd72968 100644 --- a/packages/hardhat-etherscan/src/index.ts +++ b/packages/hardhat-etherscan/src/index.ts @@ -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 ); }