Skip to content

Commit

Permalink
AddressTableLookupMeta::try_new fix variable names (#2595)
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge authored Aug 15, 2024
1 parent 94bfbd5 commit f46fda3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions transaction-view/src/address_table_lookup_meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ impl AddressTableLookupMeta {
advance_offset_for_type::<Pubkey>(bytes, offset)?;

// Read the number of write indexes, and then update the offset.
let num_accounts = optimized_read_compressed_u16(bytes, offset)?;
advance_offset_for_array::<u8>(bytes, offset, num_accounts)?;
let num_write_accounts = optimized_read_compressed_u16(bytes, offset)?;
advance_offset_for_array::<u8>(bytes, offset, num_write_accounts)?;

// Read the number of read indexes, and then update the offset.
let data_len = optimized_read_compressed_u16(bytes, offset)?;
advance_offset_for_array::<u8>(bytes, offset, data_len)?
let num_read_accounts = optimized_read_compressed_u16(bytes, offset)?;
advance_offset_for_array::<u8>(bytes, offset, num_read_accounts)?
}

Ok(Self {
Expand Down

0 comments on commit f46fda3

Please sign in to comment.