Skip to content

Contract: Add typed InvalidWasmHash error variant #208

@wheval

Description

@wheval

Contract: Add typed InvalidWasmHash error variant

Description:
Upgrade hash validation needs a dedicated error for clear client handling.

Context:
Typed error improves observability and SDK mapping.

Requirements:

  • Add InvalidWasmHash to ContractError
  • Use it when upgrade hash input is invalid
  • Add/update test assertions accordingly

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 day
Priority: Low


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