Skip to content

Commit

Permalink
Return initial type.
Browse files Browse the repository at this point in the history
  • Loading branch information
kisialiou committed Oct 22, 2024
1 parent a3214df commit 383ae37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions near/omni-types/src/evm/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ sol! {

pub fn parse_evm_event<T: SolEvent, V: TryFromLog<Log<T>>>(
chain_kind: ChainKind,
log_rlp: &[u8],
log_rlp: Vec<u8>,
) -> Result<V, String>
where
<V as TryFromLog<Log<T>>>::Error: std::fmt::Display,
{
let rlp_decoded = Log::decode(&mut log_rlp.to_vec().as_slice()).map_err(stringify)?;
let rlp_decoded = Log::decode(&mut log_rlp.as_slice()).map_err(stringify)?;
V::try_from_log(
chain_kind,
T::decode_log(&rlp_decoded, true).map_err(stringify)?,
Expand Down

0 comments on commit 383ae37

Please sign in to comment.