-
Notifications
You must be signed in to change notification settings - Fork 2
test: update test suite for OZ v0.6.0 API and soroban-sdk 25 #6
Copy link
Copy link
Open
Description
Context
Depends on #5 (event migration). After all refactors the test suite in src/test.rs will need updates because:
- Function signatures changed (
transfer/transfer_fromtakeMuxedAddressinstead ofAddressforto) - The contract client generated by
contractimplnow reflects the trait method signatures - Event assertions need to match the new
#[contractevent]struct types if usingsoroban-test-helpers/stellar-event-assertion soroban-sdktestutils API may have minor changes between22.0.6and25.0.2
Expected changes
- Update all
client.transfer(...)andclient.transfer_from(...)calls to pass addresses in the new format - If events are asserted, update assertions to match the new typed event structs (e.g.,
fungible::Transfer,fungible::Mint) - Verify all 11 existing test cases pass:
test_basic_functionalitytest_batch_minttest_burn_functionalitytest_pausable_functionalitytest_allowance_and_transfer_fromtest_comprehensive_validationtest_admin_functionalitytest_address_validationtest_error_conditionstest_self_transfer_preventiontest_integer_only_operations
- Add any new tests required to cover trait-based behavior
Acceptance criteria
-
cargo testpasses with zero failures - No
#[allow(deprecated)]suppressions hiding test-time warnings - Tests use
soroban-sdk 25.0.2testutils API correctly
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels