test: two vault instances are isolated#102
Merged
greatest0fallt1me merged 1 commit intoCalloraOrg:mainfrom Feb 27, 2026
Merged
Conversation
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.
Add Unit Test: Two Different Vault Instances Isolated
Description
This PR addresses issue #29 by adding a comprehensive test to verify that the deployment of multiple
CalloraVaultinstances guarantees complete state isolation.The test deploys two distinct vault instances with their own contract IDs, assigns them unique owners, and initializes them with differing starting balances. It then forcefully simulates activity (deposits and deductions) on the first instance and asserts that the second instance's balance and state metadata remain entirely independent and unchanged.
Changes Made
two_vault_instances_are_isolatedincontracts/vault/src/test.rs.depositanddeducttransactions processed by vault A do not bleed into or leak state variables affecting the integrity of vault B.Testing Output
All tests in the workspace—including the new isolation verification test—were executed and pass without failure.
Related Issues
Closes #29