Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauthamastro committed May 22, 2024
1 parent 7f9c81e commit f915583
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion pallets/ocex/src/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ fn test_run_on_chain_validation_trades_happy_path() {
});
}


#[test]
#[sequential]
fn test_on_chain_validation_with_auction() {
Expand Down
4 changes: 2 additions & 2 deletions pallets/ocex/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ impl<T: Config> Pallet<T> {
return Err("Last processed snapshot root is not same as on-chain root");
}
info
} else if info.snapshot_id != 0{
} else if info.snapshot_id != 0 {
log::error!(target:"ocex","Unable to load last processed snapshot summary from on-chain: {:?}",info.snapshot_id);
store_trie_root(H256::zero());
return Err("Unable to load last processed snapshot summary from on-chain");
}else{
} else {
info
}
},
Expand Down

0 comments on commit f915583

Please sign in to comment.