/// Queries the blockchain for the selected filter and returns a vector of logs
/// along with their metadata
Queries the blockchain for the selected filter and returns a vector of logs
along with their metadata
Queries the blockchain for the selected filter and returns a vector of logs along with their metadata
pub async fn query_with_meta(&self) -> Result<Vec<(D, LogMeta)>, ContractError> {
        let logs = self.provider.get_logs(&self.filter).await?;
        let events = logs
            .into_iter()
            .map(|log| {
                let meta = LogMeta::from(&log);
                let event = self.parse_log(log)?;
                Ok((event, meta))
            })
            .collect::<Result<_, ContractError>>()?;
        Ok(events)
    }
pub async fn query_with_meta ( & self ) -> Result < Vec < ( D , LogMeta ) > , ContractError > { let logs = self . provider . get_logs ( & self . filter ) . await ? ; let events = logs . into_iter ( ) . map ( | log | { let meta = LogMeta :: from ( & log ) ; let event = self . parse_log ( log ) ? ; Ok ( ( event , meta ) ) } ) . collect :: < Result < _ , ContractError > > ( ) ? ; Ok ( events ) }
Queries the blockchain for the selected filter and returns a vector of logs
along with their metadata
Queries the blockchain for the selected filter and returns a vector of logs along with their metadata
&self