Update event.rs (#1173)

This commit is contained in:
Nicolas Gailly 2022-04-24 15:10:21 +01:00 committed by GitHub
parent a115e957db
commit 9d53c73af0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ where
Ok(events) Ok(events)
} }
fn parse_log(&self, log: Log) -> Result<D, ContractError<M>> { pub fn parse_log(&self, log: Log) -> Result<D, ContractError<M>> {
D::decode_log(&RawLog { topics: log.topics, data: log.data.to_vec() }).map_err(From::from) D::decode_log(&RawLog { topics: log.topics, data: log.data.to_vec() }).map_err(From::from)
} }
} }