Context: If a critical bug is discovered in production, deploying a completely new contract breaks state continuity (active escrows, balances). There is currently no way to seamlessly patch the contract.
Location: contracts/game_contract/src/lib.rs
Acceptance Criteria:
- Implement Soroban's native contract upgrade functionality via
env.deployer().update_current_contract_wasm() restricted to ADMIN_KEY.
Context: If a critical bug is discovered in production, deploying a completely new contract breaks state continuity (active escrows, balances). There is currently no way to seamlessly patch the contract.
Location:
contracts/game_contract/src/lib.rsAcceptance Criteria:
env.deployer().update_current_contract_wasm()restricted toADMIN_KEY.