Skip to content

Commit

Permalink
dev: fix trunk issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh Bajpai authored and Harsh Bajpai committed Nov 2, 2023
1 parent 8b0ec68 commit e24c8ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/sequencer/src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ mod serialize_contract_storage {
use blockifier::state::cached_state::ContractStorageKey;
use rustc_hash::FxHashMap;
use serde::de::{Deserialize, Deserializer};
use serde::ser::{Serialize, SerializeMap, Serializer};
use serde::ser::{SerializeMap, Serializer};
use starknet_api::hash::StarkFelt;
use std::collections::HashMap;

Expand Down
12 changes: 6 additions & 6 deletions crates/sequencer/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use crate::serde::{DumpLoad, SerializableState, SerializationError};
/// which is faster than the default hash function. Think about changing
/// if the test sequencer is used for tests outside of ef-tests.
/// See [rustc-hash](https://crates.io/crates/rustc-hash) for more information.
#[derive(Clone, Default, Debug, Serialize, Deserialize, PartialEq)]
#[derive(Clone, Default, Debug, Serialize, Deserialize, Eq, PartialEq)]
pub struct State {
pub(crate) classes: FxHashMap<ClassHash, ContractClass>,
pub(crate) compiled_class_hashes: FxHashMap<ClassHash, CompiledClassHash>,
Expand Down Expand Up @@ -199,11 +199,11 @@ impl BlockifierStateReader for &mut State {
impl From<SerializableState> for State {
fn from(serializable_state: SerializableState) -> Self {
Self {
classes: serializable_state.classes.clone(),
compiled_class_hashes: serializable_state.compiled_classes_hash.clone(),
contracts: serializable_state.contracts.clone(),
storage: serializable_state.storage.clone(),
nonces: serializable_state.nonces.clone(),
classes: serializable_state.classes,
compiled_class_hashes: serializable_state.compiled_classes_hash,
contracts: serializable_state.contracts,
storage: serializable_state.storage,
nonces: serializable_state.nonces,
}
}
}
Expand Down

0 comments on commit e24c8ac

Please sign in to comment.