Build Block
Add a section that builds a block and verifies the results. We check that three solutions succeeded (the initial chain solution, the contract deployment and counter increment) and that no transactions failed. We then read the counter's value again to confirm it has been updated to 1.
#![allow(unused)] fn main() { #[tokio::test] async fn test() { // ... let o = utils::builder::build_default(&dbs).await.unwrap(); assert_eq!(o.succeeded.len(), 3); assert!(o.failed.is_empty()); let count = read_count(&dbs).await; assert_eq!(count, 1); } }