-
Notifications
You must be signed in to change notification settings - Fork 59
EIP 82 Local packages paths imports to be in the format of './auth.sol' #238
Comments
👍 @ryepdx @mhhf who is up to the challenge?? |
I don't understand it fully... The import standard also allows to specify path prefix remappings so we could keep using We can also default to a pkg directory which maps to the local dapple_package directory, with this no manipulation on the solc command needs: |
The Isn't that just like how |
So |
I have modified 'feedbase' here as a sample https://github.com/juanfranblanco/feedbase. I have included a 'dapple' package with test.sol and debug.sol, obviously those do nothing. |
This might help you, or confused you.. https://github.com/juanfranblanco/vscode-solidity/blob/master/src/projectService.ts, https://github.com/juanfranblanco/vscode-solidity/blob/master/src/model/contractsCollection.ts Please note until the compiler supports it I am replacing the modules paths with absolute paths on imports. |
will include this asap in the next version |
Following discussions with @chriseth on the imports format for the EIP 82. ethereum/EIPs#82 he has pointed out that import references to local packages should follow the format './'.
This will allow for any package to comply the compilation standard as per https://solidity.readthedocs.io/en/latest/layout-of-source-files.html#use-in-actual-compilers.
The compiler will resolve any imports, so there is no need to replace them.
Package dependencies imports will follow the same format.
The text was updated successfully, but these errors were encountered: