From f46fda34a92f9dbd18cdc141f79f6e9ca0ed1d46 Mon Sep 17 00:00:00 2001 From: Andrew Fitzgerald Date: Thu, 15 Aug 2024 08:42:04 -0500 Subject: [PATCH] AddressTableLookupMeta::try_new fix variable names (#2595) --- transaction-view/src/address_table_lookup_meta.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/transaction-view/src/address_table_lookup_meta.rs b/transaction-view/src/address_table_lookup_meta.rs index 0d5e93b2023635..28ecc67adc51ed 100644 --- a/transaction-view/src/address_table_lookup_meta.rs +++ b/transaction-view/src/address_table_lookup_meta.rs @@ -88,12 +88,12 @@ impl AddressTableLookupMeta { advance_offset_for_type::(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::(bytes, offset, num_accounts)?; + let num_write_accounts = optimized_read_compressed_u16(bytes, offset)?; + advance_offset_for_array::(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::(bytes, offset, data_len)? + let num_read_accounts = optimized_read_compressed_u16(bytes, offset)?; + advance_offset_for_array::(bytes, offset, num_read_accounts)? } Ok(Self {