fix/refactor: resolve issues #1086, #1087, #1088, #1089 - #1147
Merged
Maki-Zeninn merged 5 commits intoAug 26, 2026
Conversation
…nRequest in tests
|
@Grace-CODE-D Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses four tasks across
router-timelock,router-execution,router-access, androuter-quote:cancel()error paths.ExecutionRequeststruct literals in tests missingargsandamountfields.grant_role_internalto computeexpiry_timestamponce rather than twice.find_insertion_index.Detailed Changes
router-timelock
test_cancel_nonexistent_op_failscoveringTimelockError::NotFound.test_cancel_unauthorized_failscoveringTimelockError::Unauthorized.test_cancel_already_cancelled_failscoveringTimelockError::Cancelled.test_cancel_already_executed_failscoveringTimelockError::AlreadyExecuted.router-execution
args: Vec::new(&env)andamount: 1_000_000fields toExecutionRequeststruct literals intest_execute_success_pathandtest_execute_retry_then_succeeds.router-access
grant_role_internalto computeexpiry_timestamponce beforeif currently_activeand reuse the binding for the duplicate check and storage write.router-quote
find_insertion_indexhelper function with comparator closure.set_route_fee_tiersandget_quotes_sortedto usefind_insertion_index.Closes #1086
Closes #1087
Closes #1088
Closes #1089