Skip to content

Conversation

@dostu
Copy link

@dostu dostu commented Dec 8, 2017

Currently, it is not possible to compile a contract which imports a contract outside of its directory.

import "../Customer.sol";
> solidity-flattener/src/solidity_flattener contracts/contract_tracking/CustomerRegistry.sol
> contracts/contract_tracking/CustomerRegistry.sol:4:1: Error: Source "contracts/Customer.sol" not found: File outside of allowed directories.

I propose we should allow the user to specify --allow-paths argument for solc.

> solidity_flattener contracts/contract_tracking/CustomerRegistry.sol --allow-paths="$(pwd)/contracts"

Copy link

@izetex izetex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested and it worked for me

@dostu
Copy link
Author

dostu commented Feb 9, 2018

Closing in favor of #16

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

Successfully merging this pull request may close these issues.

2 participants