Move storage_program out of src/
This commit is contained in:
@@ -5,7 +5,6 @@ use solana_sdk::native_program::ProgramError;
|
||||
use solana_sdk::pubkey::Pubkey;
|
||||
use solana_sdk::system_program;
|
||||
use solana_sdk::transaction::Transaction;
|
||||
use storage_program;
|
||||
|
||||
/// Reasons the runtime might have rejected a transaction.
|
||||
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||
@@ -15,7 +14,7 @@ pub enum RuntimeError {
|
||||
}
|
||||
|
||||
pub fn is_legacy_program(program_id: &Pubkey) -> bool {
|
||||
budget_program::check_id(program_id) || storage_program::check_id(program_id)
|
||||
budget_program::check_id(program_id)
|
||||
}
|
||||
|
||||
/// Process an instruction
|
||||
@@ -34,8 +33,6 @@ fn process_instruction(
|
||||
if is_legacy_program(&program_id) {
|
||||
if budget_program::check_id(&program_id) {
|
||||
budget_program::process(&tx, instruction_index, program_accounts)?;
|
||||
} else if storage_program::check_id(&program_id) {
|
||||
storage_program::process(&tx, instruction_index, program_accounts)?;
|
||||
} else {
|
||||
unreachable!();
|
||||
};
|
||||
|
Reference in New Issue
Block a user