We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When running against a contract which imports external libs we get Error: Source [...] not found: File outside of allowed directories.
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.
--allow-paths
solc
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When running against a contract which imports external libs we get
Error: Source [...] not found: File outside of allowed directories.
We should be able to pass
--allow-paths
tosolc
to allow compilation of contracts which use external libraries.The text was updated successfully, but these errors were encountered: