diff --git a/runtime-transaction/src/runtime_transaction.rs b/runtime-transaction/src/runtime_transaction.rs index 24bb512b203a0d..5684559c096c3a 100644 --- a/runtime-transaction/src/runtime_transaction.rs +++ b/runtime-transaction/src/runtime_transaction.rs @@ -25,7 +25,7 @@ use { simple_vote_transaction_checker::is_simple_vote_transaction, transaction::{Result, SanitizedTransaction, SanitizedVersionedTransaction}, }, - solana_svm_transaction::instruction::SVMInstruction, + solana_svm_transaction::{instruction::SVMInstruction, svm_message::SVMMessage}, std::collections::HashSet, }; @@ -37,19 +37,7 @@ pub struct RuntimeTransaction { meta: TransactionMeta, } -// These traits gate access to static and dynamic metadata -// so that only transactions with supporting message types -// can access them. -trait StaticMetaAccess {} -trait DynamicMetaAccess: StaticMetaAccess {} - -// Implement the gate traits for the message types that should -// have access to the static and dynamic metadata. -impl StaticMetaAccess for SanitizedVersionedTransaction {} -impl StaticMetaAccess for SanitizedTransaction {} -impl DynamicMetaAccess for SanitizedTransaction {} - -impl StaticMeta for RuntimeTransaction { +impl StaticMeta for RuntimeTransaction { fn message_hash(&self) -> &Hash { &self.meta.message_hash } @@ -66,7 +54,7 @@ impl StaticMeta for RuntimeTransaction { } } -impl DynamicMeta for RuntimeTransaction {} +impl DynamicMeta for RuntimeTransaction {} impl Deref for RuntimeTransaction { type Target = T;