Function bytecode_interpreter::shared::bridge::adapt_move_vm_change_set
source · pub fn adapt_move_vm_change_set<S: MoveResolver>(
change_set_result: VMResult<ChangeSet>,
old_storage: &S
) -> VMResult<ChangeSet>
Expand description
The change-set produced by the stackless VM guarantees that for a global resource, if the underlying value is not changed in the execution, there will not be an entry in the change set. The same guarantee is not provided by the Move VM. In Move VM, we could borrow_global_mut but write the same value back instead of an updated value. In this case, the Move VM produces an entry in the change_set.