aboutsummaryrefslogtreecommitdiffstats
path: root/test/exchange_wrapper_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-05-31 22:15:16 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-05-31 22:15:16 +0800
commit1955e90bbbfeb7d2aeebfd84132f684d20e17400 (patch)
treee1863f864ad30b54f6032a7b5a0bf77ed4f39bab /test/exchange_wrapper_test.ts
parent7d29fb217445497d81ef62d0feb821c8e16ca88a (diff)
downloaddexon-sol-tools-1955e90bbbfeb7d2aeebfd84132f684d20e17400.tar
dexon-sol-tools-1955e90bbbfeb7d2aeebfd84132f684d20e17400.tar.gz
dexon-sol-tools-1955e90bbbfeb7d2aeebfd84132f684d20e17400.tar.bz2
dexon-sol-tools-1955e90bbbfeb7d2aeebfd84132f684d20e17400.tar.lz
dexon-sol-tools-1955e90bbbfeb7d2aeebfd84132f684d20e17400.tar.xz
dexon-sol-tools-1955e90bbbfeb7d2aeebfd84132f684d20e17400.tar.zst
dexon-sol-tools-1955e90bbbfeb7d2aeebfd84132f684d20e17400.zip
Fix linter errors
Diffstat (limited to 'test/exchange_wrapper_test.ts')
-rw-r--r--test/exchange_wrapper_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts
index ad82e6e82..24383906f 100644
--- a/test/exchange_wrapper_test.ts
+++ b/test/exchange_wrapper_test.ts
@@ -89,7 +89,7 @@ describe('ExchangeWrapper', () => {
expect(isValid).to.be.false;
});
it('should return false if the signature doesn\'t pertain to the dataHex & address', async () => {
- const wrongSignature = Object.assign({}, signature, {v: 28});
+ const wrongSignature = {...signature, v: 28};
const isValid = await zeroEx.exchange.isValidSignatureAsync(dataHex, wrongSignature, address);
expect(isValid).to.be.false;
});