Skip to content

Contract: Normalize session expiry units (seconds vs milliseconds) #213

@wheval

Description

@wheval

Contract: Normalize session expiry units (seconds vs milliseconds)

Description:
Session TTL helper infers seconds vs milliseconds heuristically.

Context:
Explicit normalization rules reduce ambiguous input handling.

Requirements:

  • Define explicit accepted expiry unit contract rule
  • Normalize once at add/refresh entry points
  • Add tests for seconds and milliseconds inputs

Files to Modify:

  • contracts/account/src/lib.rs

Definition of Done:

  • Implementation is complete for this single task
  • Contract tests updated or added where needed
  • Existing contract tests remain green

Labels: security, Stellar Wave
Estimated Effort: 1–2 days
Priority: Medium


Questions or need help?** Join our Telegram community

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programcontractsmart contract related worksecurity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions