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

Commit 180359b

Browse files
committed
Increase maxBuffer to 10MB when compiling using native compiler
1 parent 95408a9 commit 180359b

File tree

1 file changed

+3
-1
lines changed
  • packages/compile-solidity/compilerSupplier/loadingStrategies

1 file changed

+3
-1
lines changed

packages/compile-solidity/compilerSupplier/loadingStrategies/Native.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ class Native extends LoadingStrategy {
66
load() {
77
const versionString = this.validateAndGetSolcVersion();
88
const command = "solc --standard-json";
9+
const maxBuffer = 1024 * 1024 * 10;
910

1011
try {
1112
return {
12-
compile: options => String(execSync(command, { input: options })),
13+
compile: options =>
14+
String(execSync(command, { input: options, maxBuffer })),
1315
version: () => versionString
1416
};
1517
} catch (error) {

0 commit comments

Comments
 (0)