Skip to content

Commit

Permalink
nudge
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmay committed Jul 23, 2021
1 parent 5a1da03 commit 2f367fa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions programs/bpf/rust/sysvar/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//! @brief Example Rust-based BPF program that tests sysvar use

extern crate solana_program;
#[allow(deprecated)]
use solana_program::sysvar::recent_blockhashes::RecentBlockhashes;
use solana_program::{
account_info::AccountInfo,
entrypoint,
Expand All @@ -10,9 +12,8 @@ use solana_program::{
program_error::ProgramError,
pubkey::Pubkey,
sysvar::{
self, clock::Clock, epoch_schedule::EpochSchedule, fees::Fees, instructions,
recent_blockhashes::RecentBlockhashes, rent::Rent, slot_hashes::SlotHashes,
slot_history::SlotHistory, stake_history::StakeHistory, Sysvar,
self, clock::Clock, epoch_schedule::EpochSchedule, fees::Fees, instructions, rent::Rent,
slot_hashes::SlotHashes, slot_history::SlotHistory, stake_history::StakeHistory, Sysvar,
},
};

Expand Down Expand Up @@ -61,6 +62,7 @@ pub fn process_instruction(
assert_eq!(0, index);

// Recent Blockhashes
#[allow(deprecated)]
{
msg!("RecentBlockhashes identifier:");
sysvar::recent_blockhashes::id().log();
Expand Down

0 comments on commit 2f367fa

Please sign in to comment.