mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-27 16:18:08 -05:00
rpc: small refactor in ommer_by_block_and_index (#10325)
This commit is contained in:
@@ -202,9 +202,10 @@ pub trait EthBlocks: LoadBlock {
|
||||
}
|
||||
.unwrap_or_default();
|
||||
|
||||
let index = usize::from(index);
|
||||
let uncle =
|
||||
uncles.into_iter().nth(index).map(|header| uncle_block_from_header(header).into());
|
||||
let uncle = uncles
|
||||
.into_iter()
|
||||
.nth(index.into())
|
||||
.map(|header| uncle_block_from_header(header).into());
|
||||
Ok(uncle)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user