From 5977fa881e6d68c6779d4708d55306cd05a61fb3 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 27 Nov 2017 15:30:23 -0600 Subject: Increase gas margin --- packages/0x.js/src/contract.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/0x.js/src/contract.ts b/packages/0x.js/src/contract.ts index 6dc0dab66..7e16c580d 100644 --- a/packages/0x.js/src/contract.ts +++ b/packages/0x.js/src/contract.ts @@ -5,7 +5,7 @@ import * as Web3 from 'web3'; import {AbiType} from './types'; -const GAS_MARGIN = 30000; +const GAS_MARGIN = 300000; export class Contract implements Web3.ContractInstance { public address: string; @@ -75,7 +75,6 @@ export class Contract implements Web3.ContractInstance { const estimatedGas = await estimateGasAsync.apply(this.contract, [...args, txData]); const gas = estimatedGas + GAS_MARGIN; txData.gas = gas; - console.log('withGas', txData); } catch (err) { reject(err); return; -- cgit v1.2.3