-
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
refactor: nuking broadcast param #6741
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
62a84c6
to
a179be0
Compare
03a4250
to
294ed0a
Compare
72ccf2a
to
456cc77
Compare
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.
Mostly looks good, an extra comment would be good 👍 After that, good from me
@@ -405,7 +403,7 @@ contract Test { | |||
#[aztec(private)] | |||
fn set_constant(value: Field) { | |||
let mut note = TestNote::new(value); | |||
storage.example_constant.initialize(&mut note, false, GrumpkinPoint::zero(), GrumpkinPoint::zero()); | |||
storage.example_constant.initialize(&mut note, GrumpkinPoint::zero(), GrumpkinPoint::zero()); |
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.
I think it would be nice to add a small comment here that we are not failing because the testnote is never broadcast. It is in the note itself, but this would usually cause a failure if actually broadcasting 🤷
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.
Agree. Added the comment in 283507d
@@ -81,6 +81,8 @@ describe('e2e_non_contract_account', () => { | |||
// Add the note | |||
const note = new Note([new Fr(value)]); | |||
|
|||
// We have to manually add the note because the note ciphertext is encrypted with zero keys since there |
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.
See comment earlier related to the test_contract. It is not actually encrypted, it is not broadcast.
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.
Good point. Clarified in 283507d
c998e60
to
283507d
Compare
Fixes #6440