Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
refactor(state): use get_nonce_updates (#1398)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoni-Starkware committed Jan 30, 2024
1 parent 27aab6d commit 5b20e0c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/blockifier/src/state/cached_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,7 @@ impl<S: StateReader> State for CachedState<S> {
let state_cache = &self.cache;
let class_hash_updates = state_cache.get_class_hash_updates();
let storage_diffs = state_cache.get_storage_updates();
let nonces =
subtract_mappings(&state_cache.nonce_writes, &state_cache.nonce_initial_values);
let nonces = state_cache.get_nonce_updates();
let declared_classes = state_cache.compiled_class_hash_writes.clone();

CommitmentStateDiff {
Expand Down

0 comments on commit 5b20e0c

Please sign in to comment.