Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
ignore warnings when compiling test contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeseese committed Sep 24, 2020
1 parent b728200 commit b164f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helpers/contract/compileAndDeploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function compile(mainContractName, contractFileNames = [], contractSubdirectory,

const result = JSON.parse(solc.compile(JSON.stringify(input)));

if (result.errors) {
if (result.errors && result.errors.some((error) => error.severity === "error")) {
const errorMessages = result.errors.map((error) => error.formattedMessage);
throw new Error(`Could not compile test contracts:\n${errorMessages.join("")}`);
}
Expand Down

0 comments on commit b164f5a

Please sign in to comment.