diff --git a/core/lib/multivm/src/versions/era_vm/tests/tester/transaction_test_info.rs b/core/lib/multivm/src/versions/era_vm/tests/tester/transaction_test_info.rs index 96af0d214df0..31f5e4b83b8d 100644 --- a/core/lib/multivm/src/versions/era_vm/tests/tester/transaction_test_info.rs +++ b/core/lib/multivm/src/versions/era_vm/tests/tester/transaction_test_info.rs @@ -213,11 +213,11 @@ impl Vm { state: VmStateDump { storage_changes: self.inner.state.storage_changes().clone(), transient_storage: self.inner.state.transient_storage().clone(), - l2_to_l1_logs: self.inner.state.l2_to_l1_logs().clone(), - events: self.inner.state.events().clone(), + l2_to_l1_logs: self.inner.state.l2_to_l1_logs().to_vec(), + events: self.inner.state.events().to_vec(), pubdata: self.inner.state.pubdata().clone(), - pubdata_costs: self.inner.state.pubdata_costs().clone(), - refunds: self.inner.state.refunds().clone(), + pubdata_costs: self.inner.state.pubdata_costs().to_vec(), + refunds: self.inner.state.refunds().to_vec(), decommitted_hashes: self.inner.state.decommitted_hashes().clone(), }, } diff --git a/core/lib/multivm/src/versions/era_vm/vm.rs b/core/lib/multivm/src/versions/era_vm/vm.rs index 1ebd1a2e0baf..86c82bb83301 100644 --- a/core/lib/multivm/src/versions/era_vm/vm.rs +++ b/core/lib/multivm/src/versions/era_vm/vm.rs @@ -634,8 +634,8 @@ impl VmInterface for Vm { .map(|log| log.into_system_log()) .collect(), user_l2_to_l1_logs, - storage_refunds: state.refunds().clone(), - pubdata_costs: state.pubdata_costs().clone(), + storage_refunds: state.refunds().to_vec(), + pubdata_costs: state.pubdata_costs().to_vec(), } }