-
Notifications
You must be signed in to change notification settings - Fork 322
Open
Description
- Populus Version: on master
- OS: OSx
What was wrong?
providing any command_line
option like evm_version
in the example below doesn't work
"SolcAutoBackend": {
"class": "populus.compilation.backends.SolcAutoBackend",
"settings": {
"optimize": true,
"command_line_options": {
"allow_paths": "/",
"evm_version": "homestead"
}
}
This is because populus uses standard-json
as input to py-solc
:
populus/populus/compilation/backends/solc_standard_json.py
Lines 134 to 145 in c256cba
std_input = { | |
'language': 'Solidity', | |
'sources': sources, | |
'settings': { | |
'remappings': import_remappings, | |
'outputSelection': { | |
'*': { | |
'*': REQUIRED_OUTPUT_SELECTION | |
} | |
} | |
} | |
} |
Whenever
standard-json
is passed to py-solc
all other options are ignored.
$solc --help
...
--standard-json Switch to Standard JSON input / output mode, ignoring
all options. It reads from standard input and provides
the result on the standard output.
...
Cute Animal Picture
Metadata
Metadata
Assignees
Labels
No labels