aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-06-03 02:34:16 +0800
committerFabio Berger <me@fabioberger.com>2017-06-03 02:34:16 +0800
commitc6ceb44682a19c9f53505803547fcb2012691b5b (patch)
tree5336a6ad855bba28caa9b7aa27ca85a2a0781c0d /src
parentbae4b1ee1b991340df5bf2c5317b7af7088cedd3 (diff)
downloaddexon-sol-tools-c6ceb44682a19c9f53505803547fcb2012691b5b.tar
dexon-sol-tools-c6ceb44682a19c9f53505803547fcb2012691b5b.tar.gz
dexon-sol-tools-c6ceb44682a19c9f53505803547fcb2012691b5b.tar.bz2
dexon-sol-tools-c6ceb44682a19c9f53505803547fcb2012691b5b.tar.lz
dexon-sol-tools-c6ceb44682a19c9f53505803547fcb2012691b5b.tar.xz
dexon-sol-tools-c6ceb44682a19c9f53505803547fcb2012691b5b.tar.zst
dexon-sol-tools-c6ceb44682a19c9f53505803547fcb2012691b5b.zip
Fix bug
Diffstat (limited to 'src')
-rw-r--r--src/contract_wrappers/token_wrapper.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/contract_wrappers/token_wrapper.ts b/src/contract_wrappers/token_wrapper.ts
index 5c556dd4f..8bec39a52 100644
--- a/src/contract_wrappers/token_wrapper.ts
+++ b/src/contract_wrappers/token_wrapper.ts
@@ -129,7 +129,7 @@ export class TokenWrapper extends ContractWrapper {
const tokenContract = await this.getTokenContractAsync(tokenAddress);
- const fromAddressAllowance = await this.getAllowanceAsync(tokenAddress, fromAddress, toAddress);
+ const fromAddressAllowance = await this.getAllowanceAsync(tokenAddress, fromAddress, senderAddress);
if (fromAddressAllowance.lessThan(amountInBaseUnits)) {
throw new Error(ZeroExError.INSUFFICIENT_ALLOWANCE_FOR_TRANSFER);
}