diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-05 22:19:56 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-02 04:21:09 +0800 |
commit | e36fb654b02fc34e1699ea8d0b98ab89726b37d2 (patch) | |
tree | 7e7b195eaac5f3f383c9ab1960eb20815d2e3f42 | |
parent | 6325fac020d53ed13ab0b09a7a6cbdb12476c03a (diff) | |
download | dexon-sol-tools-e36fb654b02fc34e1699ea8d0b98ab89726b37d2.tar dexon-sol-tools-e36fb654b02fc34e1699ea8d0b98ab89726b37d2.tar.gz dexon-sol-tools-e36fb654b02fc34e1699ea8d0b98ab89726b37d2.tar.bz2 dexon-sol-tools-e36fb654b02fc34e1699ea8d0b98ab89726b37d2.tar.lz dexon-sol-tools-e36fb654b02fc34e1699ea8d0b98ab89726b37d2.tar.xz dexon-sol-tools-e36fb654b02fc34e1699ea8d0b98ab89726b37d2.tar.zst dexon-sol-tools-e36fb654b02fc34e1699ea8d0b98ab89726b37d2.zip |
Fix a typo
-rw-r--r-- | packages/contracts/test/tutorials/arbitrage.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contracts/test/tutorials/arbitrage.ts b/packages/contracts/test/tutorials/arbitrage.ts index ee8bb0e10..d32b4b344 100644 --- a/packages/contracts/test/tutorials/arbitrage.ts +++ b/packages/contracts/test/tutorials/arbitrage.ts @@ -135,7 +135,6 @@ describe('Arbitrage', () => { let edSignature: ECSignature; before(async () => { order = await orderFactory.newSignedOrderAsync(); - const shouldAddPersonalMessagePrefix = false; tokenGet = zrx.address; amountGet = ZeroEx.toBaseUnitAmount(new BigNumber(1), 18); tokenGive = weth.address; @@ -146,6 +145,7 @@ describe('Arbitrage', () => { const edOrderHash = `0x${crypto .solSHA256([etherDelta.address, tokenGet, amountGet, tokenGive, amountGive, expires, nonce]) .toString('hex')}`; + const shouldAddPersonalMessagePrefix = false; edSignature = await zeroEx.signOrderHashAsync(edOrderHash, edMaker, shouldAddPersonalMessagePrefix); addresses = [ order.params.maker, @@ -177,7 +177,7 @@ describe('Arbitrage', () => { r = [order.params.r as string, edSignature.r]; s = [order.params.s as string, edSignature.s]; }); - it('should successfully execute the arbitrage if not front-runner', async () => { + it('should successfully execute the arbitrage if not front-runned', async () => { const txHash = await arbitrage.makeAtomicTrade(addresses, values, v, r, s, { from: coinbase }); const res = await zeroEx.awaitTransactionMinedAsync(txHash); const postBalance = await weth.balanceOf(arbitrage.address); |