aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src/utils
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-21 01:12:31 +0800
committerFabio Berger <me@fabioberger.com>2018-06-21 01:12:31 +0800
commit3ce449e16739896f81b171d130afbb5774829d64 (patch)
tree9bf3208ebd9004221e40e15c25234ad9bffc6ebc /packages/contracts/src/utils
parent5c0183c71ef9f988c6a7c799c177df53c222acb3 (diff)
downloaddexon-sol-tools-3ce449e16739896f81b171d130afbb5774829d64.tar
dexon-sol-tools-3ce449e16739896f81b171d130afbb5774829d64.tar.gz
dexon-sol-tools-3ce449e16739896f81b171d130afbb5774829d64.tar.bz2
dexon-sol-tools-3ce449e16739896f81b171d130afbb5774829d64.tar.lz
dexon-sol-tools-3ce449e16739896f81b171d130afbb5774829d64.tar.xz
dexon-sol-tools-3ce449e16739896f81b171d130afbb5774829d64.tar.zst
dexon-sol-tools-3ce449e16739896f81b171d130afbb5774829d64.zip
Improve verbose logging
Diffstat (limited to 'packages/contracts/src/utils')
-rw-r--r--packages/contracts/src/utils/core_combinatorial_utils.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/contracts/src/utils/core_combinatorial_utils.ts b/packages/contracts/src/utils/core_combinatorial_utils.ts
index 4d6f3b965..f1a5599ef 100644
--- a/packages/contracts/src/utils/core_combinatorial_utils.ts
+++ b/packages/contracts/src/utils/core_combinatorial_utils.ts
@@ -308,12 +308,15 @@ export class CoreCombinatorialUtils {
this.takerAddress,
this.zrxAssetData,
);
+ if (isVerbose) {
+ logUtils.log(`Expecting fillOrder to succeed.`);
+ }
} catch (err) {
+ isFillFailureExpected = true;
if (isVerbose) {
- logUtils.log(`Expecting order to ${isFillFailureExpected ? 'fail' : 'succeed'} with:`);
+ logUtils.log(`Expecting fillOrder to fail with:`);
logUtils.log(err);
}
- isFillFailureExpected = true;
}
// 6. Fill the order