aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers/token_wrapper.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 21:13:03 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 21:13:03 +0800
commitf54b513935dbba0dd1922566ed2fd4b4acbf6459 (patch)
tree8e1eac86923729adda647332c32052ff394c9bac /src/contract_wrappers/token_wrapper.ts
parent0dfc2b5f3b81e034a9c939f667383eb03c9a5561 (diff)
downloaddexon-sol-tools-f54b513935dbba0dd1922566ed2fd4b4acbf6459.tar
dexon-sol-tools-f54b513935dbba0dd1922566ed2fd4b4acbf6459.tar.gz
dexon-sol-tools-f54b513935dbba0dd1922566ed2fd4b4acbf6459.tar.bz2
dexon-sol-tools-f54b513935dbba0dd1922566ed2fd4b4acbf6459.tar.lz
dexon-sol-tools-f54b513935dbba0dd1922566ed2fd4b4acbf6459.tar.xz
dexon-sol-tools-f54b513935dbba0dd1922566ed2fd4b4acbf6459.tar.zst
dexon-sol-tools-f54b513935dbba0dd1922566ed2fd4b4acbf6459.zip
Address feedback
Diffstat (limited to 'src/contract_wrappers/token_wrapper.ts')
-rw-r--r--src/contract_wrappers/token_wrapper.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/contract_wrappers/token_wrapper.ts b/src/contract_wrappers/token_wrapper.ts
index 945f5caf1..4412b1299 100644
--- a/src/contract_wrappers/token_wrapper.ts
+++ b/src/contract_wrappers/token_wrapper.ts
@@ -25,7 +25,7 @@ export class TokenWrapper extends ContractWrapper {
public async getBalanceAsync(tokenAddress: string, ownerAddress: string): Promise<BigNumber.BigNumber> {
assert.isETHAddressHex('ownerAddress', ownerAddress);
assert.isETHAddressHex('tokenAddress', tokenAddress);
- await assert.isAnyAddressAvailableAsync(this.web3Wrapper);
+ await assert.isUserAddressAvailableAsync(this.web3Wrapper);
const tokenContract = await this.getTokenContractAsync(tokenAddress);
let balance = await tokenContract.balanceOf.call(ownerAddress);
@@ -61,7 +61,7 @@ export class TokenWrapper extends ContractWrapper {
public async getAllowanceAsync(tokenAddress: string, ownerAddress: string, spenderAddress: string) {
assert.isETHAddressHex('ownerAddress', ownerAddress);
assert.isETHAddressHex('tokenAddress', tokenAddress);
- await assert.isAnyAddressAvailableAsync(this.web3Wrapper);
+ await assert.isUserAddressAvailableAsync(this.web3Wrapper);
const tokenContract = await this.getTokenContractAsync(tokenAddress);
let allowanceInBaseUnits = await tokenContract.allowance.call(ownerAddress, spenderAddress);