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/exchange/core.ts | |
parent | 2bd1ddd1296b4b3706bf91934e00c02508ca7c6f (diff) | |
download | dexon-sol-tools-6db0b2e39821f27f6f31a8247159864dacd1d2bd.tar.gz dexon-sol-tools-6db0b2e39821f27f6f31a8247159864dacd1d2bd.tar.zst dexon-sol-tools-6db0b2e39821f27f6f31a8247159864dacd1d2bd.zip |
Address feedback and lint
Diffstat (limited to 'packages/contracts/test/exchange/core.ts')
-rw-r--r-- | packages/contracts/test/exchange/core.ts | 7 |
1 files changed, 2 insertions, 5 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); |