Have InInstructions track the latest block for a network in storage

This commit is contained in:
Luke Parker
2023-04-16 02:57:19 -04:00
parent 9676584ffe
commit 36cdf6d4bf
3 changed files with 24 additions and 3 deletions

View File

@@ -41,6 +41,7 @@ serai_test!(
let block = provide_batch(batch).await;
let serai = serai().await;
assert_eq!(serai.get_latest_block_for_network(block, network).await.unwrap(), Some(block_hash));
let batches = serai.get_batch_events(block).await.unwrap();
assert_eq!(batches, vec![InInstructionsEvent::Batch { network, id, block: block_hash }]);