diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-18 23:26:30 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-18 23:26:30 +0800 |
commit | e19d5b3c78d1f986bc7e0db70a8241b9f2995763 (patch) | |
tree | 22035e7adf7bbad83ee0e9ae23020fcc90db207e | |
parent | 946978e454a93b9642a9ed261229ea749e71fd2f (diff) | |
download | dexon-sol-tools-e19d5b3c78d1f986bc7e0db70a8241b9f2995763.tar dexon-sol-tools-e19d5b3c78d1f986bc7e0db70a8241b9f2995763.tar.gz dexon-sol-tools-e19d5b3c78d1f986bc7e0db70a8241b9f2995763.tar.bz2 dexon-sol-tools-e19d5b3c78d1f986bc7e0db70a8241b9f2995763.tar.lz dexon-sol-tools-e19d5b3c78d1f986bc7e0db70a8241b9f2995763.tar.xz dexon-sol-tools-e19d5b3c78d1f986bc7e0db70a8241b9f2995763.tar.zst dexon-sol-tools-e19d5b3c78d1f986bc7e0db70a8241b9f2995763.zip |
Fix a typo
-rw-r--r-- | src/contract_wrappers/token_wrapper.ts | 6 | ||||
-rw-r--r-- | 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<string> { + private async _getTokenTransferProxyAddressAsync(): Promise<string> { 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(); |