Make gasLimit lower than gasLimitString

+ Leaves a margin for cases where tx gas is modified upwards by users (cf: OZ GSN)
pull/412/head
cgewecke 5 years ago committed by GitHub
parent 1020603a3f
commit 203f81dd37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      lib/api.js

@ -50,8 +50,8 @@ class API {
this.log = config.log || console.log; this.log = config.log || console.log;
this.gasLimit = 0xfffffffffff; this.gasLimit = 0xffffffffff; // default "gas sent" with transactions
this.gasLimitString = "0xfffffffffff"; this.gasLimitString = "0xfffffffffff"; // block gas limit for ganache (higher than "gas sent")
this.gasPrice = 0x01; this.gasPrice = 0x01;
this.istanbulReporter = config.istanbulReporter || ['html', 'lcov', 'text']; this.istanbulReporter = config.istanbulReporter || ['html', 'lcov', 'text'];

Loading…
Cancel
Save