-
Notifications
You must be signed in to change notification settings - Fork 947
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
add tests & refactor tx crate #3835
base: main
Are you sure you want to change the base?
Conversation
4a474a6
to
5e283f6
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3835 +/- ##
==========================================
+ Coverage 72.82% 73.00% +0.18%
==========================================
Files 338 339 +1
Lines 104220 104637 +417
==========================================
+ Hits 75897 76393 +496
+ Misses 28323 28244 -79 ☔ View full report in Codecov by Sentry. |
5e283f6
to
98be5f3
Compare
98be5f3
to
9842883
Compare
} | ||
|
||
// Set inner tx data | ||
let data_bytes = "bingbong".as_bytes(); |
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.
🤣
#[derive(Debug, Clone)] | ||
pub enum InnerTxRef<'a> { | ||
/// A direct ref to tx commitments | ||
Commitment(&'a TxCommitments), |
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.
If this was an owned value instead of a ref we could use InnerTx
inside both BatchedTx
and BatchedTxRef
in place of TxCommitments
but this would imply many more changes and those two struct are only used within the protocol, don't know if you have a strong opinion on this
Also there are a few functions in namada/crates/tx/src/data/mod.rs Line 172 in 760462b
I think we can use the new |
Describe your changes
related to #1497
closes #3200
Checklist before merging
breaking::
labelsnamada-docs
reponamada-indexer
ornamada-masp-indexer
, a corresponding PR is opened in that repo