Skip to content

Commit cd51b7b

Browse files
committed
remove hardhat remappings warning message
1 parent bc79c39 commit cd51b7b

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/utils/install/aderyn.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,6 @@ async function isAderynAvailableOnPath(logger: Logger): Promise<boolean> {
2424
}
2525

2626
async 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)

0 commit comments

Comments
 (0)