Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Increase maxBuffer to 10MB when compiling using native compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
danhper committed Apr 29, 2020
1 parent 95408a9 commit 180359b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ class Native extends LoadingStrategy {
load() {
const versionString = this.validateAndGetSolcVersion();
const command = "solc --standard-json";
const maxBuffer = 1024 * 1024 * 10;

try {
return {
compile: options => String(execSync(command, { input: options })),
compile: options =>
String(execSync(command, { input: options, maxBuffer })),
version: () => versionString
};
} catch (error) {
Expand Down

0 comments on commit 180359b

Please sign in to comment.