From 56ade9c44e1a729d98d64b688464118be671983c Mon Sep 17 00:00:00 2001 From: Amir Bandeali Date: Mon, 12 Mar 2018 09:52:35 -0700 Subject: Add private keys for testrpc mnemonic --- packages/contracts/test/exchange/core.ts | 4 ++-- packages/contracts/test/exchange/helpers.ts | 4 ++-- packages/contracts/test/exchange/wrapper.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'packages/contracts/test/exchange') diff --git a/packages/contracts/test/exchange/core.ts b/packages/contracts/test/exchange/core.ts index d11be3726..1612ecdcc 100644 --- a/packages/contracts/test/exchange/core.ts +++ b/packages/contracts/test/exchange/core.ts @@ -95,8 +95,8 @@ describe('Exchange', () => { makerFeeAmount: ZeroEx.toBaseUnitAmount(new BigNumber(1), 18), takerFeeAmount: ZeroEx.toBaseUnitAmount(new BigNumber(1), 18), }; - const secretKey = constants.TESTRPC_ACCOUNTS[0].secretKey; - orderFactory = new OrderFactory(secretKey, defaultOrderParams); + const privateKey = constants.TESTRPC_PRIVATE_KEYS[0]; + orderFactory = new OrderFactory(privateKey, defaultOrderParams); dmyBalances = new Balances([rep, dgd, zrx], [makerAddress, takerAddress, feeRecipientAddress]); await Promise.all([ rep.approve.sendTransactionAsync(tokenTransferProxy.address, INITIAL_ALLOWANCE, { diff --git a/packages/contracts/test/exchange/helpers.ts b/packages/contracts/test/exchange/helpers.ts index c52f66ca5..2880bab22 100644 --- a/packages/contracts/test/exchange/helpers.ts +++ b/packages/contracts/test/exchange/helpers.ts @@ -57,8 +57,8 @@ describe('Exchange', () => { makerFeeAmount: ZeroEx.toBaseUnitAmount(new BigNumber(1), 18), takerFeeAmount: ZeroEx.toBaseUnitAmount(new BigNumber(1), 18), }; - const secretKey = constants.TESTRPC_ACCOUNTS[0].secretKey; - orderFactory = new OrderFactory(secretKey, defaultOrderParams); + const privateKey = constants.TESTRPC_PRIVATE_KEYS[0]; + orderFactory = new OrderFactory(privateKey, defaultOrderParams); signedOrder = orderFactory.newSignedOrder(); }); diff --git a/packages/contracts/test/exchange/wrapper.ts b/packages/contracts/test/exchange/wrapper.ts index 0b76c0974..02e57b922 100644 --- a/packages/contracts/test/exchange/wrapper.ts +++ b/packages/contracts/test/exchange/wrapper.ts @@ -91,8 +91,8 @@ describe('Exchange', () => { takerFeeAmount: ZeroEx.toBaseUnitAmount(new BigNumber(1), 18), }; - const secretKey = constants.TESTRPC_ACCOUNTS[0].secretKey; - orderFactory = new OrderFactory(secretKey, defaultOrderParams); + const privateKey = constants.TESTRPC_PRIVATE_KEYS[0]; + orderFactory = new OrderFactory(privateKey, defaultOrderParams); dmyBalances = new Balances([rep, dgd, zrx], [makerAddress, takerAddress, feeRecipientAddress]); await Promise.all([ rep.approve.sendTransactionAsync(tokenTransferProxy.address, INITIAL_ALLOWANCE, { from: makerAddress }), -- cgit