aboutsummaryrefslogtreecommitdiffstats
path: root/packages/deployer/src/compiler.ts
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 /packages/deployer/src/compiler.ts
parentb57850a22540821209b600e0022ab3ef21d5dc41 (diff)
downloaddexon-sol-tools-ba0696a0d72cd1337ea5484f6af5563db4d2c652.tar
dexon-sol-tools-ba0696a0d72cd1337ea5484f6af5563db4d2c652.tar.gz
dexon-sol-tools-ba0696a0d72cd1337ea5484f6af5563db4d2c652.tar.bz2
dexon-sol-tools-ba0696a0d72cd1337ea5484f6af5563db4d2c652.tar.lz
dexon-sol-tools-ba0696a0d72cd1337ea5484f6af5563db4d2c652.tar.xz
dexon-sol-tools-ba0696a0d72cd1337ea5484f6af5563db4d2c652.tar.zst
dexon-sol-tools-ba0696a0d72cd1337ea5484f6af5563db4d2c652.zip
Incroduce the Warning constant
Diffstat (limited to 'packages/deployer/src/compiler.ts')
-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);