Skip to content

Commit

Permalink
ParserError: Source file requires
Browse files Browse the repository at this point in the history
different compiler version
  • Loading branch information
cNoveron committed Feb 9, 2020
1 parent dfadee0 commit 735573c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,20 @@ module.exports = {
},
network_id: 3
},
},
compilers: {
solc: {
version: "^0.5.0", // A version or constraint - Ex. "^0.5.0"
// Can also be set to "native" to use a native solc
docker: false, // Use a version obtained through docker
parser: "solcjs", // Leverages solc-js purely for speedy parsing
settings: {
optimizer: {
enabled: true,
runs: 1000, // Optimize for how many times you intend to run the code
},
evmVersion: "petersburg" // Default: "petersburg"
}
}
}
};

0 comments on commit 735573c

Please sign in to comment.