aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 18:48:00 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 18:48:00 +0800
commit67e2208a1822732ea125af0c4cd757b9f735ce86 (patch)
tree0582c6a5ce6170ae568bbadbfbec043ba9c26ef5 /test
parent279790117be882186685c04099e3d46ec68991b6 (diff)
downloaddexon-sol-tools-67e2208a1822732ea125af0c4cd757b9f735ce86.tar
dexon-sol-tools-67e2208a1822732ea125af0c4cd757b9f735ce86.tar.gz
dexon-sol-tools-67e2208a1822732ea125af0c4cd757b9f735ce86.tar.bz2
dexon-sol-tools-67e2208a1822732ea125af0c4cd757b9f735ce86.tar.lz
dexon-sol-tools-67e2208a1822732ea125af0c4cd757b9f735ce86.tar.xz
dexon-sol-tools-67e2208a1822732ea125af0c4cd757b9f735ce86.tar.zst
dexon-sol-tools-67e2208a1822732ea125af0c4cd757b9f735ce86.zip
Rename accounts to addreses
Diffstat (limited to 'test')
-rw-r--r--test/0x.js_test.ts2
-rw-r--r--test/assert_test.ts2
-rw-r--r--test/utils/fill_scenarios.ts2
3 files changed, 3 insertions, 3 deletions
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,