Skip to content

Commit

Permalink
separate methods for storage changes and storage overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
joonazan committed May 9, 2024
1 parent 9dee00b commit e9fcb3e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modified_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,14 @@ impl ModifiedWorld {
(refund, (update_cost as i32) - (prepaid as i32))
}

pub fn get_storage_changes(&self) -> &BTreeMap<(H160, U256), U256> {
pub fn get_storage_state(&self) -> &BTreeMap<(H160, U256), U256> {
self.storage_changes.as_ref()
}

pub fn get_storage_changes(&self) -> BTreeMap<(H160, U256), (Option<U256>, U256)> {
self.storage_changes.changes_after(0)
}

pub fn get_storage_changes_after(
&self,
snapshot: &Snapshot,
Expand Down

0 comments on commit e9fcb3e

Please sign in to comment.