solana_svm_transaction/
message_address_table_lookup.rsuse solana_sdk::{message::v0, pubkey::Pubkey};
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct SVMMessageAddressTableLookup<'a> {
pub account_key: &'a Pubkey,
pub writable_indexes: &'a [u8],
pub readonly_indexes: &'a [u8],
}
impl<'a> From<&'a v0::MessageAddressTableLookup> for SVMMessageAddressTableLookup<'a> {
fn from(lookup: &'a v0::MessageAddressTableLookup) -> Self {
Self {
account_key: &lookup.account_key,
writable_indexes: &lookup.writable_indexes,
readonly_indexes: &lookup.readonly_indexes,
}
}
}