From e19d5b3c78d1f986bc7e0db70a8241b9f2995763 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 18 Sep 2017 17:26:30 +0200 Subject: Fix a typo --- src/contract_wrappers/token_wrapper.ts | 6 +++--- test/artifacts_test.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/contract_wrappers/token_wrapper.ts b/src/contract_wrappers/token_wrapper.ts index 59c4a4e7b..167815d73 100644 --- a/src/contract_wrappers/token_wrapper.ts +++ b/src/contract_wrappers/token_wrapper.ts @@ -135,7 +135,7 @@ export class TokenWrapper extends ContractWrapper { assert.isETHAddressHex('ownerAddress', ownerAddress); assert.isETHAddressHex('tokenAddress', tokenAddress); - const proxyAddress = await this._getTokentransferProxyAddressAsync(); + const proxyAddress = await this._getTokenTransferProxyAddressAsync(); const allowanceInBaseUnits = await this.getAllowanceAsync(tokenAddress, ownerAddress, proxyAddress, methodOpts); return allowanceInBaseUnits; } @@ -154,7 +154,7 @@ export class TokenWrapper extends ContractWrapper { assert.isETHAddressHex('tokenAddress', tokenAddress); assert.isBigNumber('amountInBaseUnits', amountInBaseUnits); - const proxyAddress = await this._getTokentransferProxyAddressAsync(); + const proxyAddress = await this._getTokenTransferProxyAddressAsync(); const txHash = await this.setAllowanceAsync(tokenAddress, ownerAddress, proxyAddress, amountInBaseUnits); return txHash; } @@ -301,7 +301,7 @@ export class TokenWrapper extends ContractWrapper { this._tokenContractsByAddress[tokenAddress] = tokenContract; return tokenContract; } - private async _getTokentransferProxyAddressAsync(): Promise { + private async _getTokenTransferProxyAddressAsync(): Promise { const tokenTransferProxyContractAddress = await this._tokenTransferProxyContractAddressFetcher(); const lowerCaseTokenTransferProxyContractAddress = tokenTransferProxyContractAddress.toLowerCase(); return lowerCaseTokenTransferProxyContractAddress; diff --git a/test/artifacts_test.ts b/test/artifacts_test.ts index 59fd9e342..bd34a6b91 100644 --- a/test/artifacts_test.ts +++ b/test/artifacts_test.ts @@ -23,7 +23,7 @@ describe('Artifacts', () => { await (zeroEx.tokenRegistry as any)._getTokenRegistryContractAsync(); }).timeout(TIMEOUT); it('proxy contract is deployed', async () => { - await (zeroEx.token as any)._getTokentransferProxyAddressAsync(); + await (zeroEx.token as any)._getTokenTransferProxyAddressAsync(); }).timeout(TIMEOUT); it('exchange contract is deployed', async () => { await zeroEx.exchange.getContractAddressAsync(); -- cgit