Skip to content
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

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

akhi3030
Copy link
Collaborator

No description provided.

@@ -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);
Copy link
Collaborator Author

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.

Copy link

codecov bot commented Feb 28, 2025

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 69.90%. Comparing base (5c43f5c) to head (274c2f0).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
chain/indexer/src/streamer/utils.rs 0.00% 1 Missing ⚠️
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     
Flag Coverage Δ
backward-compatibility 0.36% <0.00%> (-0.01%) ⬇️
db-migration 0.36% <0.00%> (-0.01%) ⬇️
genesis-check 1.43% <0.00%> (+<0.01%) ⬆️
linux 69.59% <66.66%> (+0.14%) ⬆️
linux-nightly 69.46% <66.66%> (-0.01%) ⬇️
pytests 1.74% <0.00%> (-0.01%) ⬇️
sanity-checks 1.55% <0.00%> (-0.01%) ⬇️
unittests 69.74% <66.66%> (-0.01%) ⬇️
upgradability 0.36% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@akhi3030 akhi3030 marked this pull request as ready for review February 28, 2025 17:03
@akhi3030 akhi3030 requested a review from a team as a code owner February 28, 2025 17:03
@akhi3030 akhi3030 requested a review from Longarithm February 28, 2025 17:03
Copy link
Contributor

@Trisfald Trisfald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@akhi3030 akhi3030 added this pull request to the merge queue Mar 3, 2025
Merged via the queue into near:master with commit d42e24e Mar 3, 2025
27 of 29 checks passed
@akhi3030 akhi3030 deleted the simplify-tx-cost branch March 3, 2025 09:23
shreyan-gupta pushed a commit to shreyan-gupta/nearcore that referenced this pull request Mar 28, 2025
shreyan-gupta pushed a commit to shreyan-gupta/nearcore that referenced this pull request Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants