-
Notifications
You must be signed in to change notification settings - Fork 8
docs: add ScheduleDeleteTransaction
#527
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Rob Walworth <robert.walworth@swirldslabs.com>
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) |
|
||
| Test no | Name | Input | Expected response | Implemented (Y/N) | | ||
|---------|----------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|-------------------| | ||
| 1 | Deletes a scheduled transaction | scheduleId=<CREATED_SCHEDULE_ID>, commonTransactionParams.signers=[<CREATED_SCHEDULE_ADMIN_KEY>] | The schedule deletion succeeds and the transaction is no longer scheduled. | N | |
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.
should we have individual tests for scheduling each transaction type and deleting them?
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.
I don't know how much value that'd bring. Once the transaction is already scheduled, delete doesn't care what transaction it is, just if the ID is valid
| 4 | Deletes a scheduled transaction with an empty schedule ID | scheduleId="" | The schedule deletion fails with an internal SDK error. | N | | ||
| 5 | Deletes a scheduled transaction with no schedule ID | | The schedule deletion fails with an `INVALID_SCHEDULE_ID` response code from the network. | N | | ||
| 6 | Deletes a scheduled transaction that has already been deleted | scheduleId=<DELETED_SCHEDULE_ID>, commonTransactionParams.signers=[<DELETED_SCHEDULE_ADMIN_KEY>] | The schedule deletion fails with a `SCHEDULE_ALREADY_DELETED` response code from the network. | N | | ||
| 7 | Deletes a scheduled transaction without signing with the admin key | scheduleId=<CREATED_SCHEDULE_ID> | The schedule deletion fails with an `INVALID_SIGNATURE` response code from the network. | N | |
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.
what about an ID that like 0.0.hsois9397 or something? Or SDK doesn't even allow you to enter that?
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.
SDK wouldn't allow it and would be an internal SDK error
Description:
This PR adds the test specifications for
ScheduleDeleteTransaction
Related issue(s):
Fixes #118