-
Notifications
You must be signed in to change notification settings - Fork 310
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
feat: tag artifacts with the compiler version #3220
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -249,6 +249,12 @@ export interface ContractArtifact { | |
* The name of the contract. | ||
*/ | ||
name: string; | ||
|
||
/** | ||
* The version of compiler used to create this artifact | ||
*/ | ||
aztecNrVersion?: string; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does this need to be optional? Shouldn't every contract have this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I made it optional because:
|
||
|
||
/** | ||
* The functions of the contract. | ||
*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
exports[`noir-compiler using nargo compiles the test contract 1`] = ` | ||
[ | ||
{ | ||
"aztecNrVersion": undefined, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is this undefined? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't determine the aztec.nr version when imported via relative path. Will be fixed with noir-lang/noir#3427. |
||
"events": [], | ||
"functions": [ | ||
{ | ||
|
@@ -195,6 +196,7 @@ export class TestContractContract extends ContractBase { | |
exports[`noir-compiler using wasm binary compiles the test contract 1`] = ` | ||
[ | ||
{ | ||
"aztecNrVersion": undefined, | ||
"events": [], | ||
"functions": [ | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be a good idea to bake in this version in
getNodeInfo
.