aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-03-10 07:47:21 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-04-21 04:56:16 +0800
commit6db0b2e39821f27f6f31a8247159864dacd1d2bd (patch)
treebe4b6b6cc5cb098446a3a82016931173642faf5b /packages/contracts/test
parent2bd1ddd1296b4b3706bf91934e00c02508ca7c6f (diff)
downloaddexon-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')
-rw-r--r--packages/contracts/test/exchange/core.ts7
-rw-r--r--packages/contracts/test/exchange/wrapper.ts2
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