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_from take MuxedAddress instead of Address for to)
- The contract client generated by
contractimpl now reflects the trait method signatures
- Event assertions need to match the new
#[contractevent] struct types if using soroban-test-helpers / stellar-event-assertion
soroban-sdk testutils API may have minor changes between 22.0.6 and 25.0.2
Expected changes
- Update all
client.transfer(...) and client.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_functionality
test_batch_mint
test_burn_functionality
test_pausable_functionality
test_allowance_and_transfer_from
test_comprehensive_validation
test_admin_functionality
test_address_validation
test_error_conditions
test_self_transfer_prevention
test_integer_only_operations
- Add any new tests required to cover trait-based behavior
Acceptance criteria
Context
Depends on #5 (event migration). After all refactors the test suite in
src/test.rswill need updates because:transfer/transfer_fromtakeMuxedAddressinstead ofAddressforto)contractimplnow reflects the trait method signatures#[contractevent]struct types if usingsoroban-test-helpers/stellar-event-assertionsoroban-sdktestutils API may have minor changes between22.0.6and25.0.2Expected changes
client.transfer(...)andclient.transfer_from(...)calls to pass addresses in the new formatfungible::Transfer,fungible::Mint)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_operationsAcceptance criteria
cargo testpasses with zero failures#[allow(deprecated)]suppressions hiding test-time warningssoroban-sdk 25.0.2testutils API correctly