-
Notifications
You must be signed in to change notification settings - Fork 18
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: check the withdrawal status during validation #1396
feat: check the withdrawal status during validation #1396
Conversation
AcceptWithdrawalV1 struct to a qualified id
to use the withdrawal report.
of a withdrawal request
the call to is_withdrawal_completed
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.
One small comment nit, otherwise LGTM
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.
Only tiny comment-NITs found, happy to approve once fixed. The logic is laid out well & concludes with two integrated tests, one for a withdrawal accept & one for a withdrawal reject.
RejectWithdrawalV1::validate docstrings
reject withdrawal request_completed validation test
Description
Closes #1376
Changes
AcceptWithdrawalV1
andRejectWithdrawalV1
to check the smart contract for whether the withdrawal request has completed.Testing Information
This PR adds two new integration tests, one for
AcceptWithdrawalV1
and another forRejectWithdrawalV1
, that check for the correct result depending on the Stacks node response.Checklist: