Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buildinfo id exposed #953

Merged
merged 2 commits into from
Oct 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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