diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-03-10 07:47:21 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-04-21 04:56:16 +0800 |
commit | 6db0b2e39821f27f6f31a8247159864dacd1d2bd (patch) | |
tree | be4b6b6cc5cb098446a3a82016931173642faf5b /packages/contracts/test | |
parent | 2bd1ddd1296b4b3706bf91934e00c02508ca7c6f (diff) | |
download | dexon-0x-contracts-6db0b2e39821f27f6f31a8247159864dacd1d2bd.tar dexon-0x-contracts-6db0b2e39821f27f6f31a8247159864dacd1d2bd.tar.gz dexon-0x-contracts-6db0b2e39821f27f6f31a8247159864dacd1d2bd.tar.bz2 dexon-0x-contracts-6db0b2e39821f27f6f31a8247159864dacd1d2bd.tar.lz dexon-0x-contracts-6db0b2e39821f27f6f31a8247159864dacd1d2bd.tar.xz dexon-0x-contracts-6db0b2e39821f27f6f31a8247159864dacd1d2bd.tar.zst dexon-0x-contracts-6db0b2e39821f27f6f31a8247159864dacd1d2bd.zip |
Address feedback and lint
Diffstat (limited to 'packages/contracts/test')
-rw-r--r-- | packages/contracts/test/exchange/core.ts | 7 | ||||
-rw-r--r-- | packages/contracts/test/exchange/wrapper.ts | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/packages/contracts/test/exchange/core.ts b/packages/contracts/test/exchange/core.ts index c31f7ab74..d11be3726 100644 --- a/packages/contracts/test/exchange/core.ts +++ b/packages/contracts/test/exchange/core.ts @@ -502,11 +502,8 @@ describe('Exchange', () => { const invalidR = ethUtil.sha3('invalidR'); const invalidS = ethUtil.sha3('invalidS'); - const invalidSigBuff = Buffer.concat([ - ethUtil.toBuffer(signedOrder.signature.slice(0, 6)), - invalidR, - invalidS, - ]); + const signatureTypeAndV = signedOrder.signature.slice(0, 6); + const invalidSigBuff = Buffer.concat([ethUtil.toBuffer(signatureTypeAndV), invalidR, invalidS]); const invalidSigHex = `0x${invalidSigBuff.toString('hex')}`; signedOrder.signature = invalidSigHex; return expect(exWrapper.fillOrderAsync(signedOrder, takerAddress)).to.be.rejectedWith(constants.REVERT); diff --git a/packages/contracts/test/exchange/wrapper.ts b/packages/contracts/test/exchange/wrapper.ts index 0ea1f2c82..0b76c0974 100644 --- a/packages/contracts/test/exchange/wrapper.ts +++ b/packages/contracts/test/exchange/wrapper.ts @@ -736,4 +736,4 @@ describe('Exchange', () => { }); }); }); -}); +}); // tslint:disable-line:max-file-line-count |