File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -24,30 +24,6 @@ async function isAderynAvailableOnPath(logger: Logger): Promise<boolean> {
2424}
2525
2626async function createAderynReportAndDeserialize ( projectRootUri : string ) : Promise < Report > {
27- // Check if it's a pure hardhat project without remappings.txt present.
28- // If so, make a warning toast
29- const remappingsPath = path . join ( projectRootUri , 'remappings.txt' ) ;
30- const hhConfigJs = path . join ( projectRootUri , 'hardhat.config.js' ) ;
31- const hhConfigTs = path . join ( projectRootUri , 'hardhat.config.ts' ) ;
32- const foundryToml = path . join ( projectRootUri , 'foundry.toml' ) ;
33- if ( fs . existsSync ( hhConfigJs ) || fs . existsSync ( hhConfigTs ) ) {
34- if ( ! fs . existsSync ( foundryToml ) && ! fs . existsSync ( remappingsPath ) ) {
35- vscode . window
36- . showWarningMessage (
37- 'It is recommended to create remappings.txt to help Aderyn resolve files in hardhat projects.' ,
38- 'Learn' ,
39- )
40- . then ( ( selection ) => {
41- if ( selection === 'Learn' ) {
42- vscode . env . openExternal (
43- vscode . Uri . parse (
44- 'https://github.com/Cyfrin/aderyn/discussions/879' ,
45- ) ,
46- ) ;
47- }
48- } ) ;
49- }
50- }
5127 const cmd = `aderyn -o report.json --stdout --skip-cloc` ;
5228 // 20 second timeout
5329 return executeCommand ( cmd , undefined , 20 * 1000 , projectRootUri )
You can’t perform that action at this time.
0 commit comments