diff --git a/ethers-core/src/types/log.rs b/ethers-core/src/types/log.rs index 3815f1582a..62095d2020 100644 --- a/ethers-core/src/types/log.rs +++ b/ethers-core/src/types/log.rs @@ -1,6 +1,6 @@ // Adapted from https://github.com/tomusdrw/rust-web3/blob/master/src/types/log.rs use crate::{ - types::{Address, BlockNumber, Bytes, H256, U256, U64}, + types::{Address, BlockNumber, Bytes, H160, H256, U256, U64}, utils::keccak256, }; use serde::{ @@ -360,6 +360,12 @@ pub enum ValueOrArray { // TODO: Implement more common types - or adjust this to work with all Tokenizable items +impl From for ValueOrArray { + fn from(src: H160) -> Self { + ValueOrArray::Value(src) + } +} + impl From for ValueOrArray { fn from(src: H256) -> Self { ValueOrArray::Value(src)