Skip to content

payment_escrowDataKey::TreasuryAmount is referenced in resolve_dispute and withdraw_treasury but not declared in the DataKey enum #252

Description

@Nabeelahh
  • Area: Smart Contract
  • Description: The file references DataKey::TreasuryAmount and calls Self::get_treasury_amount but neither the enum variant nor the helper function appear in the visible DataKey definition or contract body. This will cause a compile error. Add the missing variant and helper.
  • File(s): contracts/payment_escrow/src/lib.rs, contracts/payment_escrow/src/test.rs
  • Priority: High
  • Implementation & verification: Treat this as a protocol-safety change: check authorization, storage/ABI compatibility, ledger-time behavior, and emitted events before changing the implementation. Add a contract-level regression test for both the invalid and successful paths.
  • Work distribution: Implementation: contracts/payment_escrow/src/lib.rs. Integration: update the directly connected public interface only where required. Verification: contracts/payment_escrow/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

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions