Skip to content

Commit

Permalink
impl TransactionData for Arc<Vec<u8>>
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed Dec 5, 2024
1 parent e310dd7 commit f38e093
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions transaction-view/src/transaction_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,10 @@ impl TransactionData for bytes::Bytes {
self.as_ref()
}
}

impl TransactionData for std::sync::Arc<Vec<u8>> {
#[inline]
fn data(&self) -> &[u8] {
self.as_ref()
}
}

0 comments on commit f38e093

Please sign in to comment.