Skip to content

Implement Contract Upgradeability Pattern #334

@Yunusabdul38

Description

@Yunusabdul38

Description

Implement a secure pattern for contract logic upgrades using env.deployer().update_current_contract_wasm. This is essential for fixing bugs or adding features after the initial deployment.

Tasks

  • Add an authorized upgrade function.
  • Ensure the admin role is the only one capable of triggering an upgrade.
  • Implement state migration verification logic to run post-upgrade.

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programcontractcontract

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions