diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-24 00:01:23 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-24 05:12:34 +0800 |
commit | e01468b49265c1cad9a4d81873584a7e89169aa1 (patch) | |
tree | e1592ae8ca9f293fb4c57f1af84e5b0f6f1cf8e4 /packages/0x.js/test/exchange_wrapper_test.ts | |
parent | f97074dc84b5c45b9c487ee27ca7ed671bb6fd71 (diff) | |
download | dexon-0x-contracts-e01468b49265c1cad9a4d81873584a7e89169aa1.tar.gz dexon-0x-contracts-e01468b49265c1cad9a4d81873584a7e89169aa1.tar.zst dexon-0x-contracts-e01468b49265c1cad9a4d81873584a7e89169aa1.zip |
Make DecodedLogEvent contain web3 log under a log subkey
Diffstat (limited to 'packages/0x.js/test/exchange_wrapper_test.ts')
-rw-r--r-- | packages/0x.js/test/exchange_wrapper_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/0x.js/test/exchange_wrapper_test.ts b/packages/0x.js/test/exchange_wrapper_test.ts index add89a3b2..4ea17ec26 100644 --- a/packages/0x.js/test/exchange_wrapper_test.ts +++ b/packages/0x.js/test/exchange_wrapper_test.ts @@ -649,7 +649,7 @@ describe('ExchangeWrapper', () => { (async () => { const callback = (err: Error, logEvent: DecodedLogEvent<LogFillContractEventArgs>) => { - expect(logEvent.event).to.be.equal(ExchangeEvents.LogFill); + expect(logEvent.log.event).to.be.equal(ExchangeEvents.LogFill); done(); }; await zeroEx.exchange.subscribeAsync( @@ -665,7 +665,7 @@ describe('ExchangeWrapper', () => { (async () => { const callback = (err: Error, logEvent: DecodedLogEvent<LogCancelContractEventArgs>) => { - expect(logEvent.event).to.be.equal(ExchangeEvents.LogCancel); + expect(logEvent.log.event).to.be.equal(ExchangeEvents.LogCancel); done(); }; await zeroEx.exchange.subscribeAsync( @@ -688,7 +688,7 @@ describe('ExchangeWrapper', () => { await zeroEx.setProviderAsync(newProvider); const callback = (err: Error, logEvent: DecodedLogEvent<LogFillContractEventArgs>) => { - expect(logEvent.event).to.be.equal(ExchangeEvents.LogFill); + expect(logEvent.log.event).to.be.equal(ExchangeEvents.LogFill); done(); }; await zeroEx.exchange.subscribeAsync( |