-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix: error handling with retries when waiting for receipt #9650
base: master
Are you sure you want to change the base?
Conversation
@klkvr do you think this makes sense in context of #9636 (comment) ? |
I don't think this will address the issue as we're hitting error in different arm #9636 (comment) we could consider retrying several fatal errors instead of immidiately returning here foundry/crates/script/src/receipts.rs Lines 51 to 52 in b4a4733
|
yeah, that's what I wanted with https://github.com/foundry-rs/foundry/pull/9650/files#diff-40b142bf1cc0e034c56533fad30c71161b2cc0b4dd4d6a72468e0649e3c7002dR61-R66 what do I miss? thank you! |
ah missed that second branch has changed too lgtm but I'd keep |
please recheck |
@@ -39,6 +39,7 @@ pub async fn check_tx_status( | |||
return Ok(receipt.into()); | |||
} | |||
|
|||
let mut retries = 0; |
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.
can we use the retry utility here
Motivation
closes #9636
Solution