pub fn set_contract_state_v1(
    storage: &mut dyn Storage,
    contract_state: &ContractStateV1
) -> Result<(), ContractError>
Expand description

Overwrites the existing singleton contract storage instance of ContractStateV1 with the input reference. An error is returned if the store write is unsuccessful.

§Parameters

  • storage A mutable instance of the contract storage value, allowing internal store manipulation.
  • contract_state The new value for which an internal storage write will be done.