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

File outside of allowed directories #6

Open
insipx opened this issue Sep 16, 2018 · 0 comments
Open

File outside of allowed directories #6

insipx opened this issue Sep 16, 2018 · 0 comments

Comments

@insipx
Copy link

insipx commented Sep 16, 2018

Input:

{"language":"Solidity","sources":{"voting.sol":{"urls":["/home/insi/Projects/ETHDBG/edb/tests/contracts/solidity/voting/voting.sol"]}},"settings":{"outputSelection":{"*":{"*":["abi","ast","evm.deployedBytecode.object","evm.deployedBytecode.sourceMap"]}}}}

this works using solc like so: cat input.json | solc --standard-json --allow-paths /home/insi/Projects/ETHDBG/edb/tests/contracts/solidity/voting

looking through the rust_solc code, it seems adding a 'paths' option to standard_json to specify --allow-paths might be a good solution, at least until file:// url is allowed (which I believe may solve this issue altogether).

related to:
ethereum/solidity#2266
ethereum/solidity#2157

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant