Skip to content

Commit

Permalink
fmt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haider-rs committed Apr 17, 2024
1 parent 0a50301 commit 2bdc59a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chains/astar/server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ impl AstarClient {

// Verify if the ethereum block hash matches the provided ethereum block hash.
// TODO: compute the block hash
if U256(actual_eth_block.header.number.0)
!= U256::from(ethereum_block.header().number())
if U256(actual_eth_block.header.number.0) !=
U256::from(ethereum_block.header().number())
{
anyhow::bail!("ethereum block hash mismatch");
}
if actual_eth_block.header.parent_hash.as_fixed_bytes()
!= &ethereum_block.header().header().parent_hash.0
if actual_eth_block.header.parent_hash.as_fixed_bytes() !=
&ethereum_block.header().header().parent_hash.0
{
anyhow::bail!("ethereum block hash mismatch");
}
Expand Down

0 comments on commit 2bdc59a

Please sign in to comment.