Skip to content

Commit

Permalink
TransactionView: TransactionMeta (#2558)
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge authored Aug 13, 2024
1 parent 8b22b92 commit 955cf6c
Show file tree
Hide file tree
Showing 3 changed files with 397 additions and 2 deletions.
1 change: 1 addition & 0 deletions transaction-view/src/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pub fn read_byte(bytes: &[u8], offset: &mut usize) -> Result<u8> {
///
/// Assumptions:
/// - The current offset is not greater than `bytes.len()`.
#[allow(dead_code)]
#[inline(always)]
pub fn read_compressed_u16(bytes: &[u8], offset: &mut usize) -> Result<u16> {
let mut result = 0u16;
Expand Down
4 changes: 2 additions & 2 deletions transaction-view/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Parsing helpers only need to be public for benchmarks.
#[cfg(feature = "dev-context-only-utils")]
#[allow(dead_code)]
pub mod bytes;
#[cfg(not(feature = "dev-context-only-utils"))]
#[allow(dead_code)]
mod bytes;

#[allow(dead_code)]
Expand All @@ -17,3 +15,5 @@ pub mod result;
mod signature_meta;
#[allow(dead_code)]
mod static_account_keys_meta;
#[allow(dead_code)]
pub mod transaction_meta;
Loading

0 comments on commit 955cf6c

Please sign in to comment.