Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Niederb committed Oct 9, 2024
1 parent 96696ac commit 089f013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/rpc_api/author.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ pub trait SubmitAndWatch {
) -> Result<ExtrinsicReport<Self::Hash>>;

/// Query the events for the specified `report` and attaches them to the returned report.
/// If the function fails the report is not modified.
/// If the function fails events might still be added to the report.
///
/// This method is blocking if the sync-api feature is activated
async fn populate_events(&self, report: &mut ExtrinsicReport<Self::Hash>) -> Result<()>;
Expand Down Expand Up @@ -302,13 +302,13 @@ where
break
}
}
report.events = Some(extrinsic_events.into_iter().map(|event| event.to_raw()).collect());
if let Some(dispatch_error) = maybe_dispatch_error {
return Err(Error::FailedExtrinsic(FailedExtrinsicError::new(
dispatch_error,
report.encode(),
)))
}
report.events = Some(extrinsic_events.into_iter().map(|event| event.to_raw()).collect());
Ok(())
}

Expand Down

0 comments on commit 089f013

Please sign in to comment.