diff options
author | Fabio Berger <me@fabioberger.com> | 2017-06-02 22:23:42 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-06-02 22:23:42 +0800 |
commit | aed96d593d2658f022a257d00124c244bb73bf92 (patch) | |
tree | 8b18524e192321f0854165a048cb446c6c9c86f9 /src | |
parent | eeac90c1a2af084b84f3c7363ae0fed7d08f5452 (diff) | |
download | dexon-0x-contracts-aed96d593d2658f022a257d00124c244bb73bf92.tar dexon-0x-contracts-aed96d593d2658f022a257d00124c244bb73bf92.tar.gz dexon-0x-contracts-aed96d593d2658f022a257d00124c244bb73bf92.tar.bz2 dexon-0x-contracts-aed96d593d2658f022a257d00124c244bb73bf92.tar.lz dexon-0x-contracts-aed96d593d2658f022a257d00124c244bb73bf92.tar.xz dexon-0x-contracts-aed96d593d2658f022a257d00124c244bb73bf92.tar.zst dexon-0x-contracts-aed96d593d2658f022a257d00124c244bb73bf92.zip |
Improve comment
Diffstat (limited to 'src')
-rw-r--r-- | src/contract_wrappers/token_wrapper.ts | 2 |
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): |