-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
fault_proving(global_roots): Initial test suite for merklized storage updates #2598
base: master
Are you sure you want to change the base?
fault_proving(global_roots): Initial test suite for merklized storage updates #2598
Conversation
83f9cc9
to
d83cd6f
Compare
b0be2e5
to
c45ab47
Compare
d2cdb38
to
81b6582
Compare
c45ab47
to
ce34251
Compare
06c9de2
to
928ac03
Compare
928ac03
to
b9bdd5e
Compare
&mut self, | ||
self, |
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.
This is unintuitive to me. I'd expect something that update
s, to be mut
, and definitely not consume the struct.
What prompted this change?
} | ||
|
||
#[test] | ||
fn process_input__should_remove_coin() { |
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.
As someone with little context here, it's not obvious to me what the difference between process_output__should_insert_coin
and process_input__should_remove_coin
are. It would be nice to explain the conditions for coin being added or removed in the test name so I know what I'm looking for.
Closes #2582
Description
This PR adds an initial test suite for the merkelized storage update functionality. These tests ensure that the insertion and deletion behavior for coins (except message coins, to be added in #2597) and contract UTXOs is correct.