diff options
author | Austin Roberts <code@ausiv.com> | 2017-10-25 06:09:17 +0800 |
---|---|---|
committer | Austin Roberts <code@ausiv.com> | 2017-10-25 06:14:35 +0800 |
commit | 1ba2df8024e20c8aaf61c4ed27aa95a7ced515e2 (patch) | |
tree | cfc4af650c6025b575de424a1eff61cf56da4ffc /src/contract_wrappers | |
parent | e17f6979c3ef966a7e5d595be4077d82ffb9dba5 (diff) | |
download | dexon-sol-tools-1ba2df8024e20c8aaf61c4ed27aa95a7ced515e2.tar dexon-sol-tools-1ba2df8024e20c8aaf61c4ed27aa95a7ced515e2.tar.gz dexon-sol-tools-1ba2df8024e20c8aaf61c4ed27aa95a7ced515e2.tar.bz2 dexon-sol-tools-1ba2df8024e20c8aaf61c4ed27aa95a7ced515e2.tar.lz dexon-sol-tools-1ba2df8024e20c8aaf61c4ed27aa95a7ced515e2.tar.xz dexon-sol-tools-1ba2df8024e20c8aaf61c4ed27aa95a7ced515e2.tar.zst dexon-sol-tools-1ba2df8024e20c8aaf61c4ed27aa95a7ced515e2.zip |
Increase ALLOWANCE_TO_ZERO_GAS_AMOUNT
On TestRPC, I'm seeing a particular transaction that is taking 47275
gas instead of the predefined 47155. It's not at all obvious to me
why this transaction is taking an extra 120 gas, and I've been unable
to reproduce the issue in the 0x.js test suite, but bumping the gas
allowance has resolved the issue for me.
The transactions in question are trying to set an unlimited proxy
allowance on either the WETH or ZRX tokens in the testrpc snapshot,
but run out of gas.
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r-- | src/contract_wrappers/token_wrapper.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/contract_wrappers/token_wrapper.ts b/src/contract_wrappers/token_wrapper.ts index 8dc4e61c5..70dbc5bfb 100644 --- a/src/contract_wrappers/token_wrapper.ts +++ b/src/contract_wrappers/token_wrapper.ts @@ -19,7 +19,7 @@ import { TokenContractEventArgs, } from '../types'; -const ALLOWANCE_TO_ZERO_GAS_AMOUNT = 47155; +const ALLOWANCE_TO_ZERO_GAS_AMOUNT = 47275; /** * This class includes all the functionality related to interacting with ERC20 token contracts. |