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

Fix BYOC/Solc Config Bug #1467

Merged
merged 18 commits into from
Dec 7, 2018
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/truffle-compile/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ var compile = function(sources, options, callback) {

expect.options(options.compilers, ["solc"]);

options.compilers.solc.settings = options.compilers.solc.settings || {};
options.compilers.solc.settings =
options.compilers.solc.settings || options.compilers.solc || {};
CruzMolina marked this conversation as resolved.
Show resolved Hide resolved

// Grandfather in old solc config
if (options.solc) {
options.compilers.solc.settings.evmVersion = options.solc.evmVersion;
options.compilers.solc.settings.optimizer = options.solc.optimizer;
options.compilers.solc.settings = options.solc.settings || options.solc;
}

// Ensure sources have operating system independent paths
Expand Down