Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoGiachetta committed Jul 10, 2024
1 parent 3f72820 commit bee4520
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions rpc-state-reader/src/blockifier_state_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,11 +409,10 @@ mod tests {

use std::num::NonZeroU128;

use crate::rpc_state::{BlockValue, L2ToL1Msg, RpcCallInfo};
use crate::rpc_state::{BlockValue, RpcCallInfo};

use super::*;
use blockifier::execution::call_info::CallInfo;
use cairo_lang_starknet_classes::abi::Event;
use pretty_assertions_sorted::assert_eq_sorted;
use test_case::test_case;
#[test]
Expand Down
6 changes: 2 additions & 4 deletions rpc-state-reader/src/rpc_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ use starknet_api::{
hash::{StarkFelt, StarkHash},
state::StorageKey,
transaction::{
EventData, EventKey, L2ToL1Payload, Transaction as SNTransaction,
TransactionHash,
EventData, EventKey, L2ToL1Payload, Transaction as SNTransaction, TransactionHash,
},
};
use std::{collections::HashMap, env, fmt::Display, num::NonZeroU128};
Expand Down Expand Up @@ -370,8 +369,7 @@ impl<'de> Deserialize<'de> for RpcCallInfo {
for msg in messages_value.as_array().ok_or(serde::de::Error::custom(
RpcStateError::RpcResponseWrongType("messages".to_string()),
))? {
messages
.push(serde_json::from_value(msg.clone()).map_err(serde::de::Error::custom)?)
messages.push(serde_json::from_value(msg.clone()).map_err(serde::de::Error::custom)?)
}

Ok(RpcCallInfo {
Expand Down

0 comments on commit bee4520

Please sign in to comment.