aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers/token_wrapper.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 18:37:52 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 18:37:52 +0800
commited3d1a8142e6f65480f95df7c3991ae00c757e38 (patch)
tree394da30c632c575f105a1c9650660552ade83ff0 /src/contract_wrappers/token_wrapper.ts
parentc9fe2b16b9efcef123e8402d38f84a966f49f4f7 (diff)
downloaddexon-sol-tools-ed3d1a8142e6f65480f95df7c3991ae00c757e38.tar
dexon-sol-tools-ed3d1a8142e6f65480f95df7c3991ae00c757e38.tar.gz
dexon-sol-tools-ed3d1a8142e6f65480f95df7c3991ae00c757e38.tar.bz2
dexon-sol-tools-ed3d1a8142e6f65480f95df7c3991ae00c757e38.tar.lz
dexon-sol-tools-ed3d1a8142e6f65480f95df7c3991ae00c757e38.tar.xz
dexon-sol-tools-ed3d1a8142e6f65480f95df7c3991ae00c757e38.tar.zst
dexon-sol-tools-ed3d1a8142e6f65480f95df7c3991ae00c757e38.zip
Rename assert.isSenderAccountHexAsync to assert.isSenderAddressHexAsync
Diffstat (limited to 'src/contract_wrappers/token_wrapper.ts')
-rw-r--r--src/contract_wrappers/token_wrapper.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/contract_wrappers/token_wrapper.ts b/src/contract_wrappers/token_wrapper.ts
index 758eb32f7..326bca189 100644
--- a/src/contract_wrappers/token_wrapper.ts
+++ b/src/contract_wrappers/token_wrapper.ts
@@ -38,7 +38,7 @@ export class TokenWrapper extends ContractWrapper {
*/
public async setAllowanceAsync(tokenAddress: string, ownerAddress: string, spenderAddress: string,
amountInBaseUnits: BigNumber.BigNumber): Promise<void> {
- await assert.isSenderAccountHexAsync('ownerAddress', ownerAddress, this.web3Wrapper);
+ await assert.isSenderAddressHexAsync('ownerAddress', ownerAddress, this.web3Wrapper);
assert.isETHAddressHex('spenderAddress', spenderAddress);
assert.isETHAddressHex('tokenAddress', tokenAddress);
assert.isBigNumber('amountInBaseUnits', amountInBaseUnits);
@@ -97,7 +97,7 @@ export class TokenWrapper extends ContractWrapper {
public async transferAsync(tokenAddress: string, fromAddress: string, toAddress: string,
amountInBaseUnits: BigNumber.BigNumber): Promise<void> {
assert.isETHAddressHex('tokenAddress', tokenAddress);
- await assert.isSenderAccountHexAsync('fromAddress', fromAddress, this.web3Wrapper);
+ await assert.isSenderAddressHexAsync('fromAddress', fromAddress, this.web3Wrapper);
assert.isETHAddressHex('toAddress', toAddress);
assert.isBigNumber('amountInBaseUnits', amountInBaseUnits);
@@ -123,7 +123,7 @@ export class TokenWrapper extends ContractWrapper {
assert.isETHAddressHex('tokenAddress', tokenAddress);
assert.isETHAddressHex('fromAddress', fromAddress);
assert.isETHAddressHex('toAddress', toAddress);
- await assert.isSenderAccountHexAsync('senderAccount', senderAccount, this.web3Wrapper);
+ await assert.isSenderAddressHexAsync('senderAccount', senderAccount, this.web3Wrapper);
assert.isBigNumber('amountInBaseUnits', amountInBaseUnits);
const tokenContract = await this.getTokenContractAsync(tokenAddress);