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

@@ -4,9 +4,10 @@ extern crate solana_sdk;
use solana_sdk::{
account_info::AccountInfo,
clock::{get_segment_from_slot, DEFAULT_SLOTS_PER_EPOCH, DEFAULT_SLOTS_PER_SEGMENT},
entrypoint, info,
entrypoint,
entrypoint::ProgramResult,
info,
log::Log,
program_error::ProgramError,
pubkey::Pubkey,
rent,
sysvar::{
@@ -20,7 +21,7 @@ fn process_instruction(
_program_id: &Pubkey,
accounts: &[AccountInfo],
_instruction_data: &[u8],
) -> Result<(), ProgramError> {
) -> ProgramResult {
// Clock
info!("Clock identifier:");
sysvar::clock::id().log();