Open voith opened 6 years ago
However, populus
provides another way to configure settings in standard-json
. Use stdin
instead of command_line_options
"SolcAutoBackend": {
"class": "populus.compilation.backends.SolcAutoBackend",
"settings": {
"optimize": true,
"output_values": [
"abi",
"bin",
"bin-runtime",
"metadata"
],
"command_line_options": {
"allow_paths": "/"
},
"stdin": {
"evmVersion": "homestead"
}
}
However, allow_paths
seems to work for some reason.
What was wrong?
providing any
command_line
option likeevm_version
in the example below doesn't workThis is because populus uses
standard-json
as input topy-solc
: https://github.com/ethereum/populus/blob/c256cbac0e343a1ce477a2e6128ef6a6c77b8c3c/populus/compilation/backends/solc_standard_json.py#L134-L145 Wheneverstandard-json
is passed topy-solc
all other options are ignored.Cute Animal Picture