diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-03-03 07:54:09 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-04-21 04:56:16 +0800 |
commit | d2be2ee6cd7fd92008404b0260fe665c4e51af9e (patch) | |
tree | 594b4a8cd220c34e750903aa72e382647efe7851 /packages/contracts/test/exchange | |
parent | 7d63c5d982236b635e5ad4bd96a9c3cd982772e4 (diff) | |
download | dexon-sol-tools-d2be2ee6cd7fd92008404b0260fe665c4e51af9e.tar dexon-sol-tools-d2be2ee6cd7fd92008404b0260fe665c4e51af9e.tar.gz dexon-sol-tools-d2be2ee6cd7fd92008404b0260fe665c4e51af9e.tar.bz2 dexon-sol-tools-d2be2ee6cd7fd92008404b0260fe665c4e51af9e.tar.lz dexon-sol-tools-d2be2ee6cd7fd92008404b0260fe665c4e51af9e.tar.xz dexon-sol-tools-d2be2ee6cd7fd92008404b0260fe665c4e51af9e.tar.zst dexon-sol-tools-d2be2ee6cd7fd92008404b0260fe665c4e51af9e.zip |
Fix compile errors
Diffstat (limited to 'packages/contracts/test/exchange')
-rw-r--r-- | packages/contracts/test/exchange/core.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/contracts/test/exchange/core.ts b/packages/contracts/test/exchange/core.ts index e21879c9e..c7724c511 100644 --- a/packages/contracts/test/exchange/core.ts +++ b/packages/contracts/test/exchange/core.ts @@ -689,7 +689,7 @@ describe('Exchange', () => { const res = await exWrapper.fillOrderAsync(signedOrder, taker); expect(res.logs).to.have.length(1); const log = res.logs[0] as LogWithDecodedArgs<LogErrorContractEventArgs>; - const errCode = log.args.errorId.toNumber(); + const errCode = log.args.errorId; expect(errCode).to.be.equal(ExchangeContractErrs.ERROR_ORDER_EXPIRED); }); @@ -700,7 +700,7 @@ describe('Exchange', () => { const res = await exWrapper.fillOrderAsync(signedOrder, taker); expect(res.logs).to.have.length(1); const log = res.logs[0] as LogWithDecodedArgs<LogErrorContractEventArgs>; - const errCode = log.args.errorId.toNumber(); + const errCode = log.args.errorId; expect(errCode).to.be.equal(ExchangeContractErrs.ERROR_ORDER_FULLY_FILLED_OR_CANCELLED); }); }); @@ -827,7 +827,7 @@ describe('Exchange', () => { const res = await exWrapper.cancelOrderAsync(signedOrder, maker); expect(res.logs).to.have.length(1); const log = res.logs[0] as LogWithDecodedArgs<LogErrorContractEventArgs>; - const errCode = log.args.errorId.toNumber(); + const errCode = log.args.errorId; expect(errCode).to.be.equal(ExchangeContractErrs.ERROR_ORDER_FULLY_FILLED_OR_CANCELLED); }); @@ -839,7 +839,7 @@ describe('Exchange', () => { const res = await exWrapper.cancelOrderAsync(signedOrder, maker); expect(res.logs).to.have.length(1); const log = res.logs[0] as LogWithDecodedArgs<LogErrorContractEventArgs>; - const errCode = log.args.errorId.toNumber(); + const errCode = log.args.errorId; expect(errCode).to.be.equal(ExchangeContractErrs.ERROR_ORDER_EXPIRED); }); }); |