diff --git a/runtime-transaction/src/runtime_transaction.rs b/runtime-transaction/src/runtime_transaction.rs index 966a24156d084f..aded0c9c819688 100644 --- a/runtime-transaction/src/runtime_transaction.rs +++ b/runtime-transaction/src/runtime_transaction.rs @@ -14,6 +14,7 @@ use { compute_budget_instruction_details::*, transaction_meta::{DynamicMeta, StaticMeta, TransactionMeta}, }, + core::ops::Deref, solana_compute_budget::compute_budget_limits::ComputeBudgetLimits, solana_sdk::{ feature_set::FeatureSet, @@ -62,7 +63,15 @@ impl StaticMeta for RuntimeTransaction { } } -impl DynamicMeta for RuntimeTransaction {} +impl DynamicMeta for RuntimeTransaction {} + +impl Deref for RuntimeTransaction { + type Target = T; + + fn deref(&self) -> &Self::Target { + &self.transaction + } +} impl RuntimeTransaction { pub fn try_from(