From 68e99c18c099a6e7a9acf1f65f2c59c427faac93 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 3 Dec 2018 10:35:52 -0800 Subject: [PATCH] Remove duplicate SYSTEM_PROGRAM_ID --- src/system_program.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/system_program.rs b/src/system_program.rs index 6e487f4b2f..829e1f0563 100644 --- a/src/system_program.rs +++ b/src/system_program.rs @@ -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 = std::result::Result; -pub const SYSTEM_PROGRAM_ID: [u8; 32] = [0u8; 32]; - pub fn check_id(program_id: &Pubkey) -> bool { program_id.as_ref() == SYSTEM_PROGRAM_ID }