Add BPF program entrypoint return type (#8111)

This commit is contained in:
Jack May
2020-02-04 12:25:42 -08:00
committed by GitHub
parent 78f6ddc5b7
commit b6d09f1901
6 changed files with 21 additions and 19 deletions

View File

@@ -5,8 +5,7 @@
extern crate solana_sdk;
use solana_sdk::{
account_info::AccountInfo, entrypoint, info, log::*, program_error::ProgramError,
pubkey::Pubkey,
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, info, log::*, pubkey::Pubkey,
};
#[derive(Debug, PartialEq)]
@@ -26,7 +25,7 @@ fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
instruction_data: &[u8],
) -> Result<(), ProgramError> {
) -> ProgramResult {
info!("Program identifier:");
program_id.log();