test/batch-withdraw-to-auth#849
Merged
Jagadeeshftw merged 4 commits intoJul 16, 2026
Merged
Conversation
Contributor
|
Merged, thanks for the contribution! This closes the linked issue. |
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.
Pull Request
closes #762
Description
This PR adds regression coverage for batch_withdraw_to to lock in the expected behavior for issue #762. The change focuses on the authorization boundary and destination handling for batched withdrawals, ensuring the contract remains secure and predictable in the edge cases that were previously untested.
Type of Change
Related Issues
Closes #
Changes Made
-Added regression tests for recipient-only authorization in batch_withdraw_to.
-Added coverage for atomic revert behavior when a batch mixes recipients.
-Added tests to verify duplicate destinations aggregate transfers correctly.
-Added a regression test to ensure contract-address destinations are rejected with InvalidParams.
-Documented the behavior in the streaming documentation.
Snapshot Test Changes
Did this PR modify snapshot test files?
If yes, explain why snapshots changed:
Behavior Changes:
Affected Snapshots:
test_snapshots/test/test_*.jsonVerification:
.jsonfileSnapshot Update Command Used:
SOROBAN_SNAPSHOT_UPDATE=1 cargo test -p fluxora_streamTesting
Test Coverage
cargo test -p fluxora_streamManual Testing
Documentation
Security Considerations
Checklist
Additional Notes
The targeted regression suite was verified locally with:
cargo test -p fluxora_stream --test batch_withdraw_to_auth -- --nocapture
Reviewer Checklist