Skip to content

Commit

Permalink
resovling comments and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
developeruche committed Apr 22, 2024
1 parent 244cd61 commit 2ebf9ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/consensus/src/receipt/any.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl<T> AnyReceiptEnvelope<T> {
}

/// Return the receipt's bloom.
pub fn bloom(&self) -> Bloom {
pub const fn bloom(&self) -> Bloom {
self.inner.logs_bloom
}

Expand Down
4 changes: 2 additions & 2 deletions crates/consensus/src/receipt/envelope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl<T> ReceiptEnvelope<T> {
}
}

impl TxReceipt for ReceiptEnvelope {
impl<T> TxReceipt<T> for ReceiptEnvelope<T> {
fn status(&self) -> bool {
self.as_receipt().unwrap().status
}
Expand All @@ -113,7 +113,7 @@ impl TxReceipt for ReceiptEnvelope {
}

/// Return the receipt logs.
fn logs(&self) -> &[Log] {
fn logs(&self) -> &[T] {
&self.as_receipt().unwrap().logs
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/consensus/src/receipt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mod receipts;
pub use receipts::{Receipt, ReceiptWithBloom};

/// Receipt is the result of a transaction execution.
pub trait TxReceipt<T=Log> {
pub trait TxReceipt<T = Log> {
/// Returns true if the transaction was successful.
fn status(&self) -> bool;

Expand Down

0 comments on commit 2ebf9ba

Please sign in to comment.