Remove duplicate SYSTEM_PROGRAM_ID

This commit is contained in:
Michael Vines
2018-12-03 10:35:52 -08:00
parent c99f93e40a
commit 68e99c18c0

View File

@ -4,7 +4,7 @@ use bincode::deserialize;
use program::ProgramError;
use solana_sdk::account::Account;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::system_instruction::SystemInstruction;
use solana_sdk::system_instruction::{SystemInstruction, SYSTEM_PROGRAM_ID};
use solana_sdk::transaction::Transaction;
use std;
@ -24,8 +24,6 @@ impl std::error::Error for Error {}
pub type Result<T> = std::result::Result<T, Error>;
pub const SYSTEM_PROGRAM_ID: [u8; 32] = [0u8; 32];
pub fn check_id(program_id: &Pubkey) -> bool {
program_id.as_ref() == SYSTEM_PROGRAM_ID
}