-
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
Enable withdrawals #691
Enable withdrawals #691
Conversation
3b38959
to
0df2081
Compare
fuel-core/src/query.rs
Outdated
use crate::tx_pool::TransactionStatus; | ||
|
||
#[cfg(test)] | ||
mod test; |
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.
Why does query have its own mod with a specific test file? I would rather unit tests be attached directly to the associated functions than breaking out into a test.rs
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.
Structurally it's basically the same as if the tests were in this file, since they need to be enclosed in a test module anyways. Personally, I prefer splitting modules into smaller files to reduce the amount of scrolling when working on something and make it easier to split related code across multiple windows.
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.
Yeh definitely a fan of breaking into a file. Keeping the tests inline only really works with very small tests.
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.
Test is failing but other than that didn't notice anything
…nable-withdrawals
* building query * add merkle proof * Add root and proof set to OutputProof * added mocks * assert message id * added signature and block * finish integration test and wire up graph api * handle results * add comments * move to mod * fix bug Co-authored-by: Brandon Vrooman <brandon.vrooman@gmail.com> Co-authored-by: ControlCplusControlV <44706811+ControlCplusControlV@users.noreply.github.com>
resolves #567