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 )
@@ -78,6 +80,11 @@ def install_artifacts(versions: [str]) -> bool:
7880 continue
7981
8082 (url , _ ) = get_url (version , artifact )
83+
84+ if is_linux_0818 (version ):
85+ url = CRYTIC_SOLC_ARTIFACTS + artifact
86+ print (url )
87+
8188 artifact_file_dir = ARTIFACTS_DIR .joinpath (f"solc-{ version } " )
8289 Path .mkdir (artifact_file_dir , parents = True , exist_ok = True )
8390 print (f"Installing '{ version } '..." )
@@ -103,6 +110,10 @@ def is_older_linux(version: str) -> bool:
103110 return soliditylang_platform () == LINUX_AMD64 and Version (version ) <= Version ("0.4.10" )
104111
105112
113+ def is_linux_0818 (version : str ) -> bool :
114+ return soliditylang_platform () == LINUX_AMD64 and Version (version ) == Version ("0.8.18" )
115+
116+
106117def is_older_windows (version : str ) -> bool :
107118 return soliditylang_platform () == WINDOWS_AMD64 and Version (version ) <= Version ("0.7.1" )
108119
@@ -148,8 +159,8 @@ def get_url(version: str = "", artifact: str = "") -> (str, str):
148159 if soliditylang_platform () == LINUX_AMD64 :
149160 if version != "" and is_older_linux (version ):
150161 return (
151- f"https://raw.githubusercontent.com/crytic/solc/master/linux/amd64/ { artifact } " ,
152- "https://raw.githubusercontent.com/crytic/solc/new-list-json/linux/amd64/list.json" ,
162+ CRYTIC_SOLC_ARTIFACTS + artifact ,
163+ CRYTIC_SOLC_JSON ,
153164 )
154165 return (
155166 f"https://binaries.soliditylang.org/{ soliditylang_platform ()} /{ artifact } " ,
0 commit comments