aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-04-02 15:59:22 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-04-02 17:35:03 +0800
commitba0696a0d72cd1337ea5484f6af5563db4d2c652 (patch)
tree02a4f16e8efd840c69361d61ba8e149d37e7bc83
parentb57850a22540821209b600e0022ab3ef21d5dc41 (diff)
downloaddexon-0x-contracts-ba0696a0d72cd1337ea5484f6af5563db4d2c652.tar
dexon-0x-contracts-ba0696a0d72cd1337ea5484f6af5563db4d2c652.tar.gz
dexon-0x-contracts-ba0696a0d72cd1337ea5484f6af5563db4d2c652.tar.bz2
dexon-0x-contracts-ba0696a0d72cd1337ea5484f6af5563db4d2c652.tar.lz
dexon-0x-contracts-ba0696a0d72cd1337ea5484f6af5563db4d2c652.tar.xz
dexon-0x-contracts-ba0696a0d72cd1337ea5484f6af5563db4d2c652.tar.zst
dexon-0x-contracts-ba0696a0d72cd1337ea5484f6af5563db4d2c652.zip
Incroduce the Warning constant
-rw-r--r--packages/deployer/src/compiler.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/deployer/src/compiler.ts b/packages/deployer/src/compiler.ts
index b63f6033f..4bd636c90 100644
--- a/packages/deployer/src/compiler.ts
+++ b/packages/deployer/src/compiler.ts
@@ -179,7 +179,8 @@ export class Compiler {
);
if (!_.isUndefined(compiled.errors)) {
- const isError = (errorOrWarning: string) => !errorOrWarning.includes('Warning');
+ const SOLIDITY_WARNING_PREFIX = 'Warning';
+ const isError = (errorOrWarning: string) => !errorOrWarning.includes(SOLIDITY_WARNING_PREFIX);
const errors = _.filter(compiled.errors, isError);
_.forEach(compiled.errors, errMsg => {
const normalizedErrMsg = getNormalizedErrMsg(errMsg);