Skip to content

Commit af1dee0

Browse files
committed
Update comment
1 parent 421e8e3 commit af1dee0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

v-next/hardhat/src/internal/builtin-plugins/solidity/build-system/resolver/dependency-resolver.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ export class ResolverImplementation implements Resolver {
425425
}
426426

427427
for (const [importedPackage, dependency] of dependenciesMap.entries()) {
428-
// As `hardhat/console.sol` is resolved through npm, even if the
428+
// As `hardhat/console.sol` is always resolved through npm, even if the
429429
// `hardhat/` folder exists in the root of the package/project, we
430430
// only remap that file.
431431
//
@@ -436,10 +436,6 @@ export class ResolverImplementation implements Resolver {
436436
// the dependency's name, and that's because we always resolve 'hardhat'
437437
// as the hh package itself. If someone installs another package as
438438
// "hardhat", it may break.
439-
//
440-
// If we support package#exports, we may treat hardhat as a normal
441-
// package, with the exception of `hardhat/console.sol` always being
442-
// resolved through npm.
443439
if (
444440
dependency !== PROJECT_ROOT_SENTINEL &&
445441
importedPackage === "hardhat"

0 commit comments

Comments
 (0)