Skip to content

tests(pool): add SEP-41 interface compliance test suite #762

Description

@K1NGD4VID

Summary

Once balance/transfer/approve/allowance/transfer_from are implemented, they need a dedicated compliance test suite verifying they behave per the SEP-41 spec's edge cases (not just the repo's own happy paths already covered by unit tests for each function individually) — e.g. transferring more than balance, approving zero, allowance expiration by ledger number.

Acceptance Criteria

  • New test module (contracts/pool/src/test.rs or a dedicated sep41_compliance test file) covering: transfer failure on insufficient balance, transfer_from failure once allowance is exhausted, allowance returning 0 past its expiration_ledger, approve overwriting a prior allowance rather than adding to it
  • Test added/updated and passing (cargo test)

Tech Stack

Rust, Soroban SDK, contracts/pool/src/test.rs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions