aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/contracts')
-rw-r--r--packages/contracts/test/tutorials/arbitrage.ts4
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);