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(katana): messaging e2e test #1925

Merged

Conversation

fabrobles92
Copy link
Contributor

Integration testing for messaging between L1 and L2 layers

Closes #1785
Closes DOJ-329

@fabrobles92
Copy link
Contributor Author

@glihm and @kariy I opened a new PR cause I had a lot of conflicts on the other one due to the changes on the main.

Let's continue here

@fabrobles92 fabrobles92 force-pushed the katana/Messaging-Intregation-Testing branch from fbb538e to bb51bc2 Compare May 5, 2024 02:21
@fabrobles92 fabrobles92 force-pushed the katana/Messaging-Intregation-Testing branch from bb51bc2 to fd99511 Compare May 5, 2024 02:33
Copy link
Member

@kariy kariy left a comment

Choose a reason for hiding this comment

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

its looking good so far, i took the liberty to apply some formatting and also moved the code to a different module.

i put some todos that should be addressed as the final part of the testing

crates/katana/runner/Cargo.toml Outdated Show resolved Hide resolved
crates/katana/rpc/rpc/tests/messaging.rs Outdated Show resolved Hide resolved
crates/katana/rpc/rpc/tests/messaging.rs Outdated Show resolved Hide resolved
crates/katana/rpc/rpc/tests/messaging.rs Outdated Show resolved Hide resolved
crates/katana/rpc/rpc/tests/messaging.rs Outdated Show resolved Hide resolved
crates/katana/rpc/rpc/tests/messaging.rs Outdated Show resolved Hide resolved
@glihm glihm added katana This issue is related to Katana contributor labels May 15, 2024
@fabrobles92 fabrobles92 force-pushed the katana/Messaging-Intregation-Testing branch from dc482e4 to 122fa28 Compare May 26, 2024 18:40
@fabrobles92 fabrobles92 marked this pull request as ready for review June 11, 2024 02:17
@fabrobles92 fabrobles92 force-pushed the katana/Messaging-Intregation-Testing branch from 0e8f966 to 22cfff7 Compare June 11, 2024 04:49
@fabrobles92 fabrobles92 force-pushed the katana/Messaging-Intregation-Testing branch from 95ef5cd to 7f64bb8 Compare June 12, 2024 23:35
@fabrobles92 fabrobles92 force-pushed the katana/Messaging-Intregation-Testing branch from 9677b1c to 7187343 Compare June 13, 2024 03:07
Copy link

codecov bot commented Jun 22, 2024

Codecov Report

Attention: Patch coverage is 44.44444% with 5 lines in your changes missing coverage. Please review.

Project coverage is 68.51%. Comparing base (8a5902b) to head (d1df5f5).

Files Patch % Lines
...ates/katana/core/src/service/messaging/ethereum.rs 0.00% 5 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1925   +/-   ##
=======================================
  Coverage   68.51%   68.51%           
=======================================
  Files         329      329           
  Lines       41096    41105    +9     
=======================================
+ Hits        28155    28162    +7     
- Misses      12941    12943    +2     

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

@@ -255,7 +256,6 @@ pub fn compute_l1_handler_tx_hash(
contract_address,
entry_point_selector,
compute_hash_on_elements(calldata),
FieldElement::ZERO, // No fee on L2 for L1 handler tx
Copy link
Collaborator

Choose a reason for hiding this comment

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

@kariy if you could double confirm this modification. I think it was a typo since the first implem, and never reviewed it since the starknet doc was updated.

Thanks mate. 🙏

Copy link
Member

@kariy kariy Jun 24, 2024

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

I've also based my comment on Madara, but actually interesting that all the others are not including it.
Will ask for a clarification, thanks for pinging this up mate.

@kariy kariy changed the title [katana] integration testing for messaging test(katana): messaging e2e test Jun 24, 2024
Copy link
Collaborator

@glihm glihm left a comment

Choose a reason for hiding this comment

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

Amazing work @fabrobles92 🚀 Thank you for this contribution, and @kariy for the follow up. 🙏

@glihm glihm merged commit e87118d into dojoengine:main Jun 25, 2024
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor katana This issue is related to Katana
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integration testing for messaging
3 participants