Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Jan 14, 2025
1 parent 99d7867 commit 77fb02a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions crates/katana/rpc/rpc/tests/starknet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,10 @@ async fn declare_and_deploy_contract() -> Result<()> {
let state_update = provider.get_state_update(BlockId::Tag(BlockTag::Latest)).await?;
match state_update {
MaybePendingStateUpdate::Update(update) => {
assert!(update
.state_diff
.declared_classes
.iter()
.any(|item| item.class_hash == class_hash
&& item.compiled_class_hash == compiled_class_hash));
assert!(
update.state_diff.declared_classes.iter().any(|item| item.class_hash == class_hash
&& item.compiled_class_hash == compiled_class_hash)
);
}
_ => panic!("Expected Update, got PendingUpdate"),
}
Expand Down

0 comments on commit 77fb02a

Please sign in to comment.