Skip to content

Commit

Permalink
Fmt rs
Browse files Browse the repository at this point in the history
  • Loading branch information
sieniven committed Jan 22, 2024
1 parent b533295 commit 069645b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ain-evm/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ impl BlockService {

let mut blocks = Vec::with_capacity(MAX_BLOCK_COUNT_RANGE.as_usize());
let mut block_num = if let Some(block_num) = highest_block.checked_sub(block_count) {
block_num.checked_add(U256::one()).ok_or(format_err!("Block number overflow"))?
block_num
.checked_add(U256::one())
.ok_or(format_err!("Block number overflow"))?
} else {
U256::zero()
};
Expand Down

0 comments on commit 069645b

Please sign in to comment.