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: improve TransactionWaiter #1340

Merged
merged 3 commits into from
Dec 29, 2023
Merged

Conversation

kariy
Copy link
Member

@kariy kariy commented Dec 28, 2023

This PR improves the TransactionWaiter type by using getTransactionStatus endpoint when querying for the tx status before requesting for its receipt. Which means the waiter should now be able to handle transaction with REJECTED / RECEIVED status.

@codecov-commenter
Copy link

codecov-commenter commented Dec 28, 2023

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (dfc48d0) 65.33% compared to head (c5b6674) 65.97%.

Files Patch % Lines
crates/dojo-world/src/utils.rs 96.10% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1340      +/-   ##
==========================================
+ Coverage   65.33%   65.97%   +0.64%     
==========================================
  Files         228      228              
  Lines       19620    19835     +215     
==========================================
+ Hits        12818    13087     +269     
+ Misses       6802     6748      -54     

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

@kariy kariy merged commit bc5dd6f into dojoengine:main Dec 29, 2023
9 checks passed
@kariy kariy deleted the tx-wait-improv branch December 29, 2023 02:17
Larkooo pushed a commit that referenced this pull request Jan 2, 2024
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.

3 participants