Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Oct 12, 2024
1 parent 3849ac1 commit e256be9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
16 changes: 8 additions & 8 deletions crates/dojo-world/src/metadata_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ async fn get_full_dojo_metadata_from_workspace() {
assert!(env.rpc_url.unwrap().eq("http://localhost:5050/"));

assert!(env.account_address.is_some());
assert!(env
.account_address
.unwrap()
.eq("0x5a37d83d451063858217e9c510d6f45d6bd37ff8664a7c0466329316f7a2891"));
assert!(
env.account_address
.unwrap()
.eq("0x5a37d83d451063858217e9c510d6f45d6bd37ff8664a7c0466329316f7a2891")
);

assert!(env.private_key.is_some());
assert!(env
.private_key
.unwrap()
.eq("0x1800000000300000180000000000030000000000003006001800006600"));
assert!(
env.private_key.unwrap().eq("0x1800000000300000180000000000030000000000003006001800006600")
);

assert!(env.world_address.is_some());

Expand Down
6 changes: 1 addition & 5 deletions crates/katana/executor/tests/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ fn test_executor_with_valid_blocks_impl<EF: ExecutorFactory>(

// ensure that all transactions succeeded, if not panic with the error message and tx index
let has_failed = transactions.iter().enumerate().find_map(|(i, (_, res))| {
if let ExecutionResult::Failed { error } = res {
Some((i, error))
} else {
None
}
if let ExecutionResult::Failed { error } = res { Some((i, error)) } else { None }
});

if let Some((pos, error)) = has_failed {
Expand Down

0 comments on commit e256be9

Please sign in to comment.