Skip to content

Commit 0494635

Browse files
authored
feat: decompose output (#37)
1 parent 75183ba commit 0494635

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lifecycle/output.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,10 @@ impl<T: TxReceipt> BlockOutput<T> {
109109
self.receipts().iter().flat_map(TxReceipt::logs),
110110
)
111111
}
112+
113+
/// Deconstruct the block output into its parts.
114+
pub fn into_parts(self) -> (Vec<T>, Vec<Address>, Bloom) {
115+
let bloom = self.logs_bloom();
116+
(self.receipts, self.senders, bloom)
117+
}
112118
}

0 commit comments

Comments
 (0)