System parameters are stored in persistent storage, which can expire if not extended when updated.
Requirements and context
- Call env.storage().persistent().extend_ttl(&key, 100_000, 200_000) when updating a system parameter
Suggested execution
- Locate update_system_param in governance_contract/src/lib.rs
- Obtain the DataKey::SystemParam key
- Add the extend_ttl call on the persistent storage key during updates
Example commit message
refactor: extend persistent storage TTL on system param updates
System parameters are stored in persistent storage, which can expire if not extended when updated.
Requirements and context
Suggested execution
Example commit message
refactor: extend persistent storage TTL on system param updates