Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions crates/consensus/src/receipt/receipts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ impl<T> Receipt<T>
where
T: AsRef<Log>,
{
/// Calculates [`Log`]'s bloom filter. this is slow operation and [ReceiptWithBloom] can
/// be used to cache this value.
/// Calculates [`Log`]'s bloom filter. This is slow operation and
/// [`ReceiptWithBloom`] can be used to cache this value.
pub fn bloom_slow(&self) -> Bloom {
self.logs.iter().map(AsRef::as_ref).collect()
}

/// Calculates the bloom filter for the receipt and returns the [ReceiptWithBloom] container
/// type.
/// Calculates the bloom filter for the receipt and returns the
/// [`ReceiptWithBloom`] container type.
pub fn with_bloom(self) -> ReceiptWithBloom<Self> {
ReceiptWithBloom { logs_bloom: self.bloom_slow(), receipt: self }
}
Expand Down
1 change: 1 addition & 0 deletions crates/rpc-types-eth/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1177,6 +1177,7 @@ mod tests {

// <https://github.com/succinctlabs/kona/issues/31>
#[test]
#[cfg(feature = "serde")]
fn deserde_tenderly_block() {
let s = include_str!("../testdata/tenderly.sepolia.json");
let _block: Block = serde_json::from_str(s).unwrap();
Expand Down
1 change: 1 addition & 0 deletions crates/rpc-types-eth/src/fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ mod tests {
}

#[test]
#[cfg(feature = "serde")]
fn test_fee_hist_null_gas_used_ratio() {
let json = r#"{"oldestBlock": "0x0", "gasUsedRatio": null}"#;
let _actual = serde_json::from_str::<FeeHistory>(json).unwrap();
Expand Down
Loading
Loading