1717 EARLIEST_RELEASE ,
1818 SOLC_SELECT_DIR ,
1919 ARTIFACTS_DIR ,
20+ CRYTIC_SOLC_ARTIFACTS ,
21+ CRYTIC_SOLC_JSON ,
2022)
2123
2224Path .mkdir (ARTIFACTS_DIR , parents = True , exist_ok = True )
@@ -79,6 +81,11 @@ def install_artifacts(versions: [str]) -> bool:
7981 continue
8082
8183 (url , _ ) = get_url (version , artifact )
84+
85+ if is_linux_0818 (version ):
86+ url = CRYTIC_SOLC_ARTIFACTS + artifact
87+ print (url )
88+
8289 artifact_file_dir = ARTIFACTS_DIR .joinpath (f"solc-{ version } " )
8390 Path .mkdir (artifact_file_dir , parents = True , exist_ok = True )
8491 print (f"Installing '{ version } '..." )
@@ -104,6 +111,10 @@ def is_older_linux(version: str) -> bool:
104111 return soliditylang_platform () == LINUX_AMD64 and Version (version ) <= Version ("0.4.10" )
105112
106113
114+ def is_linux_0818 (version : str ) -> bool :
115+ return soliditylang_platform () == LINUX_AMD64 and Version (version ) == Version ("0.8.18" )
116+
117+
107118def is_older_windows (version : str ) -> bool :
108119 return soliditylang_platform () == WINDOWS_AMD64 and Version (version ) <= Version ("0.7.1" )
109120
@@ -149,8 +160,8 @@ def get_url(version: str = "", artifact: str = "") -> (str, str):
149160 if soliditylang_platform () == LINUX_AMD64 :
150161 if version != "" and is_older_linux (version ):
151162 return (
152- f"https://raw.githubusercontent.com/crytic/solc/master/linux/amd64/ { artifact } " ,
153- "https://raw.githubusercontent.com/crytic/solc/new-list-json/linux/amd64/list.json" ,
163+ CRYTIC_SOLC_ARTIFACTS + artifact ,
164+ CRYTIC_SOLC_JSON ,
154165 )
155166 return (
156167 f"https://binaries.soliditylang.org/{ soliditylang_platform ()} /{ artifact } " ,
0 commit comments