mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +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
|
// TODO(alloy) this shim can be removed once we fully migrate
|
||||||
// from ethereum types to alloy primitives
|
// from ethereum types to alloy primitives
|
||||||
struct U256Shim(Uint256);
|
struct U256Shim(Uint256);
|
||||||
|
|
||||||
impl From<U256Shim> for alloy_primitives::U256 {
|
impl From<U256Shim> for alloy_primitives::U256 {
|
||||||
fn from(value: U256Shim) -> Self {
|
fn from(value: U256Shim) -> Self {
|
||||||
let mut buffer: [u8; 32] = [0; 32];
|
let mut buffer: [u8; 32] = [0; 32];
|
||||||
value.0.to_little_endian(&mut buffer);
|
value.0.to_little_endian(&mut buffer);
|
||||||
Self::from_le_slice(&buffer)
|
Self::from_le_slice(&buffer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user