diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-04-13 09:06:45 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-04-21 04:56:17 +0800 |
commit | 8374a51e6aed171c64600205b1219c6f38550a06 (patch) | |
tree | 2d2759ce586f80fb8a79d590e092dd20709e21e4 /packages/contracts/test/exchange/helpers.ts | |
parent | 4e48de111600412c6344bc5c4df42e4d17807e97 (diff) | |
download | dexon-sol-tools-8374a51e6aed171c64600205b1219c6f38550a06.tar.gz dexon-sol-tools-8374a51e6aed171c64600205b1219c6f38550a06.tar.zst dexon-sol-tools-8374a51e6aed171c64600205b1219c6f38550a06.zip |
Replaced instances of `accounts[0]` with `owner` in contracts test cases
Diffstat (limited to 'packages/contracts/test/exchange/helpers.ts')
-rw-r--r-- | packages/contracts/test/exchange/helpers.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/contracts/test/exchange/helpers.ts b/packages/contracts/test/exchange/helpers.ts index cac6e7872..ed140c733 100644 --- a/packages/contracts/test/exchange/helpers.ts +++ b/packages/contracts/test/exchange/helpers.ts @@ -33,6 +33,7 @@ describe('Exchange', () => { before(async () => { const accounts = await web3Wrapper.getAvailableAddressesAsync(); [makerAddress, feeRecipientAddress] = accounts; + const owner = accounts[0]; const tokenRegistry = await deployer.deployAsync(ContractName.TokenRegistry); const tokenTransferProxy = await deployer.deployAsync(ContractName.TokenTransferProxy); const [rep, dgd, zrx] = await Promise.all([ @@ -49,13 +50,13 @@ describe('Exchange', () => { provider, ); await erc20TransferProxy.addAuthorizedAddress.sendTransactionAsync(assetProxyDispatcher.address, { - from: accounts[0], + from: owner, }); await assetProxyDispatcher.addAssetProxy.sendTransactionAsync( AssetProxyId.ERC20, erc20TransferProxy.address, ZeroEx.NULL_ADDRESS, - { from: accounts[0] }, + { from: owner }, ); // Deploy and configure Exchange const exchangeInstance = await deployer.deployAsync(ContractName.Exchange, [ @@ -64,7 +65,7 @@ describe('Exchange', () => { assetProxyDispatcher.address, ]); const exchange = new ExchangeContract(exchangeInstance.abi, exchangeInstance.address, provider); - await assetProxyDispatcher.addAuthorizedAddress.sendTransactionAsync(exchange.address, { from: accounts[0] }); + await assetProxyDispatcher.addAuthorizedAddress.sendTransactionAsync(exchange.address, { from: owner }); const zeroEx = new ZeroEx(provider, { networkId: constants.TESTRPC_NETWORK_ID }); exchangeWrapper = new ExchangeWrapper(exchange, zeroEx); const defaultOrderParams = { |