From a55834fbcf45f7bceaaccebb154fe224ef02d0a2 Mon Sep 17 00:00:00 2001 From: "justin j. moses" Date: Thu, 9 Apr 2020 16:04:59 -0400 Subject: [PATCH 1/2] Allowing providerOptions gasLimit and allowUnlimitedContractSize to override defaults --- lib/api.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/api.js b/lib/api.js index 461dcfea..9ab28acb 100644 --- a/lib/api.js +++ b/lib/api.js @@ -145,8 +145,15 @@ class API { this.collector = new DataCollector(this.instrumenter.instrumentationData); - this.providerOptions.gasLimit = this.gasLimitString; - this.providerOptions.allowUnlimitedContractSize = true; + this.providerOptions.gasLimit = + 'gasLimit' in this.providerOptions + ? this.providerOptions.gasLimit + : this.gasLimitString; + + this.providerOptions.allowUnlimitedContractSize = + 'allowUnlimitedContractSize' in this.providerOptions + ? this.providerOptions.allowUnlimitedContractSize + : this.allowUnlimitedContractSize; // Attach to vm step of supplied client try { From 123d421cf3263c12a696a6a26284adeb91a17a8b Mon Sep 17 00:00:00 2001 From: "justin j. moses" Date: Thu, 9 Apr 2020 16:27:15 -0400 Subject: [PATCH 2/2] Fixing default --- lib/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api.js b/lib/api.js index 9ab28acb..f7eb2df5 100644 --- a/lib/api.js +++ b/lib/api.js @@ -153,7 +153,7 @@ class API { this.providerOptions.allowUnlimitedContractSize = 'allowUnlimitedContractSize' in this.providerOptions ? this.providerOptions.allowUnlimitedContractSize - : this.allowUnlimitedContractSize; + : true; // Attach to vm step of supplied client try {