(v: U256)
| 19 | /// Per the EVM spec, this simply discards the high bytes. |
| 20 | impl From<U256> for EthAddress { |
| 21 | fn from(v: U256) -> Self { |
| 22 | let mut bytes = [0u8; 32]; |
| 23 | v.to_big_endian(&mut bytes); |
| 24 | Self(bytes[12..].try_into().unwrap()) |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | /// Converts an H160 to an EthAddress |
nothing calls this directly
no test coverage detected