raineorshine / solidity-repl

Ethereum Solidity REPL
ISC License
396 stars 33 forks source link

Add support for import #18

Open JLansey opened 6 years ago

JLansey commented 6 years ago

Hi thanks for making this tool! I'm sorry if this isn't actually an issue - but rather me using the tool wrong, I'm having trouble importing code from another solidity file, getting a parse error.

> import "../contracts/myContract.sol";
:6:1: ParserError: Expected primary expression.
import "../contracts/myContract.sol";

Is it possible to import code from another file into this repl tool?

raineorshine commented 6 years ago

This project does not support importing currently. That would be a great feature to add!

eagr commented 2 years ago

@JLansey check this out https://github.com/eagr/sol-repl