Skip to content

Commit

Permalink
Merge pull request #247 from lambdaclass/era_vm_integration_rollbacka…
Browse files Browse the repository at this point in the history
…ble_priv_fields

Adapt zksync era to private fields on Rollbackable structs
  • Loading branch information
gianbelinche authored Sep 5, 2024
2 parents 81f61c8 + 96bf03d commit 13d45a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ impl<S: ReadStorage> Vm<S> {
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(),
},
}
Expand Down
4 changes: 2 additions & 2 deletions core/lib/multivm/src/versions/era_vm/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,8 +560,8 @@ impl<S: ReadStorage> VmInterface for Vm<S> {
.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(),
}
}

Expand Down

0 comments on commit 13d45a4

Please sign in to comment.