Add test for the integrity of headers

This commit is contained in:
Luke Parker
2025-11-14 12:04:21 -05:00
parent 09113201e7
commit 46b1f1b7ec
9 changed files with 165 additions and 32 deletions

View File

@@ -66,7 +66,12 @@ pub(crate) fn module<
let Ok(events) = client.runtime_api().events(block_hash) else {
Err(Error::Missing("couldn't fetch the events for the requested block"))?
};
Ok(events.into_iter().map(hex::encode).collect::<Vec<String>>())
Ok(
events
.into_iter()
.map(|events_per_tx| events_per_tx.into_iter().map(hex::encode).collect::<Vec<_>>())
.collect::<Vec<_>>(),
)
})?;
Ok(module)