-
Notifications
You must be signed in to change notification settings - Fork 690
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: tx_cost
does not need to be told if sender_is_receiver
#13020
Conversation
@@ -25,6 +25,7 @@ pub(crate) async fn convert_transactions_sir_into_local_receipts( | |||
let local_receipts: Vec<views::ReceiptView> = | |||
txs.into_iter() | |||
.map(|tx| { | |||
assert_eq!(tx.transaction.signer_id, tx.transaction.receiver_id); |
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.
note to reviewer: I could not validate that this condition should always hold. As the previous code was always setting sender_is_receiver
to true
, I inserted this assertion here.
It might also not be a bad assertion given the name of the function.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #13020 +/- ##
==========================================
- Coverage 69.91% 69.90% -0.01%
==========================================
Files 859 859
Lines 176206 176306 +100
Branches 176206 176306 +100
==========================================
+ Hits 123189 123255 +66
- Misses 47858 47881 +23
- Partials 5159 5170 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
👍
No description provided.