-
Notifications
You must be signed in to change notification settings - Fork 229
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
feat(fast-usdc): skipAdvance when preconditions fail #11005
Conversation
430a488
to
1a632b7
Compare
Deploying agoric-sdk with
|
Latest commit: |
cfe0954
|
Status: | ✅ Deploy successful! |
Preview URL: | https://6a3265ba.agoric-sdk.pages.dev |
Branch Preview URL: | https://srs-skip-advance.agoric-sdk.pages.dev |
@@ -217,7 +217,7 @@ export const prepareAdvancerKit = ( | |||
}); | |||
} catch (error) { | |||
log('Advancer error:', error); | |||
statusManager.observe(evidence); | |||
statusManager.skipAdvance(evidence, ['PRECONDITIONS_FAILED']); |
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.
This looks good. As discussed offline let's try this approach, like smart wallet:
statusManager.skipAdvance(evidence, ['PRECONDITIONS_FAILED']); | |
statusManager.skipAdvance(evidence, [error.message]); |
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.
Done
8d1e131
to
48ef22e
Compare
This pull request has been removed from the queue for the following reason: The merge conditions cannot be satisfied due to failing checks: You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. If you want to requeue this pull request, you need to post a comment with the text: |
48ef22e
to
cfe0954
Compare
This pull request has been removed from the queue for the following reason: The merge conditions cannot be satisfied due to failing checks: You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. If you want to requeue this pull request, you need to post a comment with the text: |
closes #10994
Description
If any of the preconditions throw for making the advance, set the state to
ADVANCE_SKIPPED
rather thanOBSERVED
. This makes it more obvious that the contract has actively chosen to not advance, rather than getting stuck onOBSERVED
for some reason.Security Considerations
N/A
Scaling Considerations
N/A
Documentation Considerations
I don't think we have any docs that go this granular on the flow.
Testing Considerations
Updated tests
Upgrade Considerations
N/A