You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/miscellaneous.rst
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,8 +111,11 @@ it is also possible to provide path redirects using `prefix=path` in the followi
111
111
This essentially instructs the compiler to search for anything starting with
112
112
`github.com/ethereum/dapp-bin/` under `/usr/local/lib/dapp-bin` and if it does not
113
113
find the file there, it will look at `/usr/local/lib/fallback` (the empty prefix
114
-
always matches) and if also that fails, it will make a full path lookup
115
-
on the filesystem.
114
+
always matches). `solc` will not read files from the filesystem that lie outside of
115
+
the remapping targets and outside of the directories where explicitly specified source
116
+
files reside, so things like `import "/etc/passwd";` only work if you add `=/` as a remapping.
117
+
118
+
If there are multiple matches due to remappings, the one with the longest common prefix is selected.
116
119
117
120
If your contracts use [libraries](#libraries), you will notice that the bytecode contains substrings of the form `__LibraryName______`. You can use `solc` as a linker meaning that it will insert the library addresses for you at those points:
0 commit comments