Skip to content

Commit

Permalink
building id exposed
Browse files Browse the repository at this point in the history
  • Loading branch information
wighawag committed Oct 24, 2020
1 parent cff93b6 commit 9d2038c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/hardhat-core/src/internal/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ export class Artifacts implements IArtifacts {
const buildInfoName = uuid();

const buildInfo = this._createBuildInfo(
buildInfoName,
solcVersion,
solcLongVersion,
input,
Expand Down Expand Up @@ -296,12 +297,14 @@ export class Artifacts implements IArtifacts {
}

private _createBuildInfo(
id: string,
solcVersion: string,
solcLongVersion: string,
input: CompilerInput,
output: CompilerOutput
): BuildInfo {
return {
id,
_format: BUILD_INFO_FORMAT_VERSION,
solcVersion,
solcLongVersion,
Expand Down
1 change: 1 addition & 0 deletions packages/hardhat-core/src/types/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export interface DebugFile {
* all of its output.
*/
export interface BuildInfo {
id: string;
_format: string;
solcVersion: string;
solcLongVersion: string;
Expand Down

0 comments on commit 9d2038c

Please sign in to comment.