Add topics to EventDetails (#989)

* Add topics to `EventDetails`

* Update comment

* Fmt

* Clippy
This commit is contained in:
Andrew Jones
2023-05-31 13:10:06 +01:00
committed by GitHub
parent 1ddae684d5
commit 011a4bd42f
2 changed files with 64 additions and 22 deletions
+1 -1
View File
@@ -560,7 +560,7 @@ impl<T: Config> ExtrinsicEvents<T> {
///
/// This works in the same way that [`events::Events::iter()`] does, with the
/// exception that it filters out events not related to the submitted extrinsic.
pub fn iter(&self) -> impl Iterator<Item = Result<events::EventDetails, Error>> + '_ {
pub fn iter(&self) -> impl Iterator<Item = Result<events::EventDetails<T>, Error>> + '_ {
self.events.iter().filter(|ev| {
ev.as_ref()
.map(|ev| ev.phase() == events::Phase::ApplyExtrinsic(self.idx))