convert ``OptimismBlockExecution`` error variant into a general purpose error variant (#8100)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Rupam Dey
2024-05-06 18:37:25 +05:30
committed by GitHub
parent 7fd091536f
commit 5e778317fb
12 changed files with 111 additions and 116 deletions

View File

@@ -2162,7 +2162,7 @@ mod tests {
.assert(&tree);
// unwind canonical
assert_eq!(tree.unwind(block1.number), Ok(()));
assert!(tree.unwind(block1.number).is_ok());
// Trie state:
// b2 b2a (pending block)
// / /
@@ -2226,7 +2226,7 @@ mod tests {
.assert(&tree);
// update canonical block to b2, this would make b2a be removed
assert_eq!(tree.connect_buffered_blocks_to_canonical_hashes_and_finalize(12), Ok(()));
assert!(tree.connect_buffered_blocks_to_canonical_hashes_and_finalize(12).is_ok());
assert_eq!(
tree.is_block_known(block2.num_hash()).unwrap(),