Target Contract: identity-registry-contract
Labels: phase-2-registry, infrastructure
Description: Standard WASM upgrade capability for the Registry.
Tasks:
src/contract.rs: Implement upgrade_contract(env, new_wasm_hash: BytesN<32>). Require admin auth.
src/lib.rs: Expose pub fn upgrade_contract(env: Env, new_wasm_hash: BytesN<32>) -> Result<(), RegistryError> in #[contractimpl].
src/test.rs: Test WASM upgrade maintains the expert directory state without data loss.
Acceptance Criteria:
- Registry logic can be hot-swapped by the admin.
Target Contract: identity-registry-contract
Labels: phase-2-registry, infrastructure
Description: Standard WASM upgrade capability for the Registry.
Tasks:
src/contract.rs: Implement upgrade_contract(env, new_wasm_hash: BytesN<32>). Require admin auth.src/lib.rs: Expose pub fn upgrade_contract(env: Env, new_wasm_hash: BytesN<32>) -> Result<(), RegistryError> in #[contractimpl].src/test.rs: Test WASM upgrade maintains the expert directory state without data loss.Acceptance Criteria: