diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-29 02:23:41 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-29 02:23:41 +0800 |
commit | 353abffba9afd73d70fce47fee2f2d6067c6c8ae (patch) | |
tree | f412bb23339d507221e1245f515b60f518351595 /packages/0x.js | |
parent | bead76a5b7eeb7d9bdaa0a677c366d2618feb425 (diff) | |
download | dexon-sol-tools-353abffba9afd73d70fce47fee2f2d6067c6c8ae.tar dexon-sol-tools-353abffba9afd73d70fce47fee2f2d6067c6c8ae.tar.gz dexon-sol-tools-353abffba9afd73d70fce47fee2f2d6067c6c8ae.tar.bz2 dexon-sol-tools-353abffba9afd73d70fce47fee2f2d6067c6c8ae.tar.lz dexon-sol-tools-353abffba9afd73d70fce47fee2f2d6067c6c8ae.tar.xz dexon-sol-tools-353abffba9afd73d70fce47fee2f2d6067c6c8ae.tar.zst dexon-sol-tools-353abffba9afd73d70fce47fee2f2d6067c6c8ae.zip |
Improve the comment
Diffstat (limited to 'packages/0x.js')
-rw-r--r-- | packages/0x.js/src/contract.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/0x.js/src/contract.ts b/packages/0x.js/src/contract.ts index 872f18b2a..a4ee03910 100644 --- a/packages/0x.js/src/contract.ts +++ b/packages/0x.js/src/contract.ts @@ -5,7 +5,9 @@ import * as Web3 from 'web3'; import {AbiType} from './types'; -const GAS_MARGIN = 300000; +// HACK: Gas estimates on testrpc don't take into account gas refunds. +// Our calls can trigger max 8 gas refunds for SSTORE per transaction for 15k gas each which gives 120k. +const GAS_MARGIN = 120000; export class Contract implements Web3.ContractInstance { public address: string; |