aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-06-02 22:23:42 +0800
committerFabio Berger <me@fabioberger.com>2017-06-02 22:23:42 +0800
commitaed96d593d2658f022a257d00124c244bb73bf92 (patch)
tree8b18524e192321f0854165a048cb446c6c9c86f9
parenteeac90c1a2af084b84f3c7363ae0fed7d08f5452 (diff)
downloaddexon-sol-tools-aed96d593d2658f022a257d00124c244bb73bf92.tar
dexon-sol-tools-aed96d593d2658f022a257d00124c244bb73bf92.tar.gz
dexon-sol-tools-aed96d593d2658f022a257d00124c244bb73bf92.tar.bz2
dexon-sol-tools-aed96d593d2658f022a257d00124c244bb73bf92.tar.lz
dexon-sol-tools-aed96d593d2658f022a257d00124c244bb73bf92.tar.xz
dexon-sol-tools-aed96d593d2658f022a257d00124c244bb73bf92.tar.zst
dexon-sol-tools-aed96d593d2658f022a257d00124c244bb73bf92.zip
Improve comment
-rw-r--r--src/contract_wrappers/token_wrapper.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/contract_wrappers/token_wrapper.ts b/src/contract_wrappers/token_wrapper.ts
index 2804cf227..6cb71c7e8 100644
--- a/src/contract_wrappers/token_wrapper.ts
+++ b/src/contract_wrappers/token_wrapper.ts
@@ -108,6 +108,8 @@ export class TokenWrapper extends ContractWrapper {
}
/**
* Transfers `amountInBaseUnits` ERC20 tokens from `fromAddress` to `toAddress`.
+ * Requires the fromAddress to have sufficient funds and to have approved an allowance of
+ * `amountInBaseUnits` for toAddress.
*/
public async transferFromAsync(tokenAddress: string, fromAddress: string, toAddress: string,
senderAddress: string, amountInBaseUnits: BigNumber.BigNumber):