From 203f81dd375617dd0e86385c511cfb50311d145e Mon Sep 17 00:00:00 2001 From: cgewecke Date: Sat, 21 Sep 2019 18:40:37 -0700 Subject: [PATCH] Make gasLimit lower than gasLimitString + Leaves a margin for cases where tx gas is modified upwards by users (cf: OZ GSN) --- lib/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/api.js b/lib/api.js index dec6710..fa0a0a8 100644 --- a/lib/api.js +++ b/lib/api.js @@ -50,8 +50,8 @@ class API { this.log = config.log || console.log; - this.gasLimit = 0xfffffffffff; - this.gasLimitString = "0xfffffffffff"; + this.gasLimit = 0xffffffffff; // default "gas sent" with transactions + this.gasLimitString = "0xfffffffffff"; // block gas limit for ganache (higher than "gas sent") this.gasPrice = 0x01; this.istanbulReporter = config.istanbulReporter || ['html', 'lcov', 'text'];