From 67e2208a1822732ea125af0c4cd757b9f735ce86 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 6 Jun 2017 12:48:00 +0200 Subject: Rename accounts to addreses --- test/0x.js_test.ts | 2 +- test/assert_test.ts | 2 +- test/utils/fill_scenarios.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts index 061e0cbf4..edc2a3493 100644 --- a/test/0x.js_test.ts +++ b/test/0x.js_test.ts @@ -195,7 +195,7 @@ describe('ZeroEx library', () => { const web3 = web3Factory.create(); const zeroEx = new ZeroEx(web3); before(async () => { - const availableAccounts = await zeroEx.getAvailableAccountsAsync(); + const availableAccounts = await zeroEx.getAvailableAddressesAsync(); makerAccount = availableAccounts[0]; }); afterEach(() => { diff --git a/test/assert_test.ts b/test/assert_test.ts index f72956eb3..c8f698730 100644 --- a/test/assert_test.ts +++ b/test/assert_test.ts @@ -24,7 +24,7 @@ describe('Assertion library', () => { isn't available through the supplied web3 instance`); }); it('doesn\'t throw if account is available', async () => { - const availableAccount = (await zeroEx.getAvailableAccountsAsync())[0]; + const availableAccount = (await zeroEx.getAvailableAddressesAsync())[0]; const varName = 'account'; return expect(assert.isSenderAddressHexAsync(varName, availableAccount, (zeroEx as any).web3Wrapper)) .to.become(undefined); diff --git a/test/utils/fill_scenarios.ts b/test/utils/fill_scenarios.ts index 075906eaa..f2daac623 100644 --- a/test/utils/fill_scenarios.ts +++ b/test/utils/fill_scenarios.ts @@ -54,7 +54,7 @@ export class FillScenarios { public async createPartiallyFilledSignedOrderAsync(makerTokenAddress: string, takerTokenAddress: string, takerAddress: string, fillableAmount: BigNumber.BigNumber, partialFillAmount: BigNumber.BigNumber) { - const prevSenderAccount = await this.zeroEx.getAvailableAccountsAsync(); + const prevSenderAccount = await this.zeroEx.getAvailableAddressesAsync(); const [makerAddress] = this.userAddresses; const signedOrder = await this.createAsymmetricFillableSignedOrderAsync( makerTokenAddress, takerTokenAddress, makerAddress, takerAddress, -- cgit v1.2.3