Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

[contracts] make ProxyFactory build reproducible across machines #2224

Merged
merged 5 commits into from
Aug 19, 2019
Merged
Changes from 3 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
20 changes: 16 additions & 4 deletions packages/cf-funding-protocol-contracts/waffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,29 @@ var waffleConfig = {
"npmPath": "../../node_modules",
"legacyOutput": true,
"compilerOptions": {
"evmVersion": "constantinople"
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "petersburg",
"metadata": {
"useLiteralContent": true
},
"outputSelection": {
"*": {
"*": [
"metadata", "evm.bytecode", "evm.bytecode.sourceMap", "abi"
],
},
}

}
};

var selectSolc = () => {
// TODO: which should select "native" in CI, but the solc binary in the CI
// environment is currently too old
if (process.env.NATIVE_SOLC == "true") {
waffleConfig.compiler = "native";
}

return waffleConfig;
}

Expand Down