Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to pass --allow-paths to solc #29

Open
elenadimitrova opened this issue Jun 26, 2019 · 0 comments
Open

Ability to pass --allow-paths to solc #29

elenadimitrova opened this issue Jun 26, 2019 · 0 comments

Comments

@elenadimitrova
Copy link

When running against a contract which imports external libs we get Error: Source [...] not found: File outside of allowed directories.

Galaxy:colonyNetwork Elena$ python ../Source/MAIAN/tool/maian.py -s contracts/ColonyNetwork.sol ColonyNetwork -c 0

====================================================================================================
[ ] Compiling Solidity contract from the file contracts/ColonyNetwork.sol ... contracts/ColonyNetworkStorage.sol:20:1: Error: Source "lib/dappsys/math.sol" not found: File outside of allowed directories.
import "../lib/dappsys/math.sol";
^-------------------------------^
contracts/EtherRouter.sol:21:1: Error: Source "lib/dappsys/auth.sol" not found: File outside of allowed directories.
import "../lib/dappsys/auth.sol";
^-------------------------------^
contracts/CommonStorage.sol:20:1: Error: Source "lib/dappsys/auth.sol" not found: File outside of allowed directories.
import "../lib/dappsys/auth.sol";
^-------------------------------^
contracts/ERC20Extended.sol:20:1: Error: Source "lib/dappsys/erc20.sol" not found: File outside of allowed directories.
import "../lib/dappsys/erc20.sol";
^--------------------------------^
contracts/Resolver.sol:20:1: Error: Source "lib/dappsys/auth.sol" not found: File outside of allowed directories.
import "../lib/dappsys/auth.sol";
^-------------------------------^
contracts/DomainRoles.sol:20:1: Error: Source "lib/dappsys/roles.sol" not found: File outside of allowed directories.
import "../lib/dappsys/roles.sol";
^--------------------------------^

[-] Cannot compile the contract

We should be able to pass --allow-paths to solc to allow compilation of contracts which use external libraries.

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

No branches or pull requests

1 participant