pub fn generate_pools_v1_1_state_updates<S: SubstateDatabase>(
db: &S
) -> StateUpdates
Expand description
Generates the state updates required to update the pool package from the v1.0 to the v1.1 logic. No schema changes took place, just a change of logic. It produces the following updates:
- Removes the old code_hash => vm_type substate.
- Adds a new code_hash => vm_type substate.
- Removes the old code_hash => original_code substate.
- Adds a new code_hash => original_code substate.
- Updates the function exports in the blueprint definitions to point to the new code hash.