Improve the comment

This commit is contained in:
Leonid Logvinov 2017-11-28 12:23:41 -06:00
parent bead76a5b7
commit 353abffba9
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4

View File

@ -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;