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

Adding import to VeriSolContracts.sol using solc allow-path #156

Closed
shuvendu-lahiri opened this issue Jul 30, 2019 · 2 comments
Closed

Adding import to VeriSolContracts.sol using solc allow-path #156

shuvendu-lahiri opened this issue Jul 30, 2019 · 2 comments

Comments

@shuvendu-lahiri
Copy link
Member

Currently

import "../../Libraries/VeriSolContracts.sol" 

does not seem to work on Windows. Hence the VeriSolContracts.sol has to be copied to the folder/sub-folder of the contract that imports it. Maybe there is a way to use allow-path flag to solc to fix this?

@shuvendu-lahiri
Copy link
Member Author

shuvendu-lahiri commented Jul 31, 2019

Currently, one can use it as follows:

d:\verisol>Tool\solc.exe --allow-paths d:\verisol\ test\regressions\foo.sol

and inside foo.sol, use

import "./../../Libraries/VeriSolContracts.sol";

Need to add a flag that allows VeriSol.dll to take additional args for solc.

@shuvendu-lahiri
Copy link
Member Author

shuvendu-lahiri commented Jul 31, 2019

And the imported folder has to be in a subfolder from where the command is being executed.

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