mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-25 16:58:28 +00:00
update
This commit is contained in:
@@ -150,15 +150,14 @@ impl<'a> From<&'a ExecutionBlockHeader> for EncodableExecutionBlockHeader<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// TODO(alloy) this shim can be removed once we fully migrate
|
||||
// from ethereum types to alloy primitives
|
||||
struct U256Shim(Uint256);
|
||||
|
||||
impl From<U256Shim> for alloy_primitives::U256 {
|
||||
impl From<U256Shim> for alloy_primitives::U256 {
|
||||
fn from(value: U256Shim) -> Self {
|
||||
let mut buffer: [u8; 32] = [0; 32];
|
||||
value.0.to_little_endian(&mut buffer);
|
||||
Self::from_le_slice(&buffer)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user