Move storage_program out of src/

This commit is contained in:
Michael Vines
2018-12-04 08:20:41 -08:00
parent ea6e042a6f
commit 27d456bf93
12 changed files with 155 additions and 104 deletions

View File

@@ -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!();
};