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

Test batch tx events #3401

Merged
merged 3 commits into from
Jul 5, 2024
Merged

Test batch tx events #3401

merged 3 commits into from
Jul 5, 2024

Conversation

sug0
Copy link
Contributor

@sug0 sug0 commented Jun 11, 2024

Describe your changes

Closes #3397

Adds additional test coverage to batch tx events emission, to make sure we correctly build a batch of inner tx events from a batched tx.

Indicate on which release or other PRs this topic is based on

v0.39.0

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@sug0 sug0 added the testing label Jun 11, 2024
@sug0 sug0 requested a review from grarco June 11, 2024 13:18
Copy link

codecov bot commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.92%. Comparing base (879a326) to head (486e404).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3401      +/-   ##
==========================================
- Coverage   53.92%   53.92%   -0.01%     
==========================================
  Files         317      317              
  Lines      107575   107580       +5     
==========================================
- Hits        58011    58010       -1     
- Misses      49564    49570       +6     

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

batch.header.chain_id = shell.chain_id.clone();
batch.header.atomic = false;

// append first inner tx to batch (this one is valid)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit, we have a mk_tx_batch helper for unit tests in finalize_block that you could use to build the batch

Copy link
Contributor

@grarco grarco left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@grarco grarco mentioned this pull request Jun 12, 2024
brentstone added a commit that referenced this pull request Jun 12, 2024
* tiago/test-batch-tx-events:
  Changelog for #3401
  Test inner tx results from batch tx
  Remove redundant TODO
brentstone added a commit that referenced this pull request Jun 14, 2024
* tiago/test-batch-tx-events:
  Changelog for #3401
  Test inner tx results from batch tx
  Remove redundant TODO
@brentstone brentstone merged commit 16f3468 into main Jul 5, 2024
18 of 19 checks passed
@brentstone brentstone deleted the tiago/test-batch-tx-events branch July 5, 2024 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong Batch event
3 participants