Skip to content

Commit fb33e8b

Browse files
authored
Merge pull request #2805 from NomicFoundation/export-missing-artifacts-method
Expose missing method in the Artifacts interface
2 parents 64456a0 + 3770a5b commit fb33e8b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.changeset/poor-dolphins-wait.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"hardhat": patch
3+
---
4+
5+
Expose a missing method in the Artifacts interface

packages/hardhat-core/src/types/artifacts.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ export interface Artifacts {
9090
input: CompilerInput,
9191
output: CompilerOutput
9292
): Promise<string>;
93+
94+
/**
95+
* Returns the absolute path to the given artifact.
96+
*
97+
* @param fullyQualifiedName The FQN of the artifact.
98+
*/
99+
formArtifactPathFromFullyQualifiedName(fullyQualifiedName: string): string;
93100
}
94101

95102
/**

0 commit comments

Comments
 (0)