Skip to content

test: update test suite for OZ v0.6.0 API and soroban-sdk 25 #6

@aguilar1x

Description

@aguilar1x

Context

Depends on #5 (event migration). After all refactors the test suite in src/test.rs will need updates because:

  1. Function signatures changed (transfer / transfer_from take MuxedAddress instead of Address for to)
  2. The contract client generated by contractimpl now reflects the trait method signatures
  3. Event assertions need to match the new #[contractevent] struct types if using soroban-test-helpers / stellar-event-assertion
  4. 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

  • cargo test passes with zero failures
  • No #[allow(deprecated)] suppressions hiding test-time warnings
  • Tests use soroban-sdk 25.0.2 testutils API correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions