aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts2
-rw-r--r--test/0x.js_test.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index ff1e755fc..37f7334d4 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -604,7 +604,7 @@ export class ExchangeWrapper extends ContractWrapper {
* on the network that the provided web3 instance is connected to
* @return The ethereum addresses of all available exchange contract.
*/
- public async getAvailableContractAddressedAsync(): Promise<string[]> {
+ public async getAvailableContractAddressesAsync(): Promise<string[]> {
const networkId = await this._web3Wrapper.getNetworkIdIfExistsAsync();
if (_.isUndefined(networkId)) {
return [];
diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts
index f4d13886b..7e350c8f4 100644
--- a/test/0x.js_test.ts
+++ b/test/0x.js_test.ts
@@ -16,7 +16,7 @@ describe('ZeroEx library', () => {
it('overrides provider in nested web3s and invalidates contractInstances', async () => {
const web3 = web3Factory.create();
const zeroEx = new ZeroEx(web3.currentProvider);
- const [exchangeContractAddress] = await zeroEx.exchange.getAvailableContractAddressedAsync();
+ const [exchangeContractAddress] = await zeroEx.exchange.getAvailableContractAddressesAsync();
// Instantiate the contract instances with the current provider
await (zeroEx.exchange as any)._getExchangeContractAsync(exchangeContractAddress);
await (zeroEx.tokenRegistry as any)._getTokenRegistryContractAsync();
@@ -55,7 +55,7 @@ describe('ZeroEx library', () => {
const zeroEx = new ZeroEx(web3.currentProvider);
let exchangeContractAddress: string;
before(async () => {
- [exchangeContractAddress] = await zeroEx.exchange.getAvailableContractAddressedAsync();
+ [exchangeContractAddress] = await zeroEx.exchange.getAvailableContractAddressesAsync();
});
it('should return false if the data doesn\'t pertain to the signature & address', async () => {
expect(ZeroEx.isValidSignature('0x0', signature, address)).to.be.false();