aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-28 05:30:23 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-28 07:37:23 +0800
commit5977fa881e6d68c6779d4708d55306cd05a61fb3 (patch)
tree92420e6baa2603f40846fb32c800494c515bc714 /packages/0x.js/src
parent128fccb763bb780aa96063031116e45a98d163f9 (diff)
downloaddexon-sol-tools-5977fa881e6d68c6779d4708d55306cd05a61fb3.tar
dexon-sol-tools-5977fa881e6d68c6779d4708d55306cd05a61fb3.tar.gz
dexon-sol-tools-5977fa881e6d68c6779d4708d55306cd05a61fb3.tar.bz2
dexon-sol-tools-5977fa881e6d68c6779d4708d55306cd05a61fb3.tar.lz
dexon-sol-tools-5977fa881e6d68c6779d4708d55306cd05a61fb3.tar.xz
dexon-sol-tools-5977fa881e6d68c6779d4708d55306cd05a61fb3.tar.zst
dexon-sol-tools-5977fa881e6d68c6779d4708d55306cd05a61fb3.zip
Increase gas margin
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r--packages/0x.js/src/contract.ts3
1 files changed, 1 insertions, 2 deletions
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;