Add msg! macro for program logging, deprecate info! macro
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
|
||||
extern crate solana_program;
|
||||
use solana_program::{
|
||||
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, info, pubkey::Pubkey,
|
||||
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, msg, pubkey::Pubkey,
|
||||
};
|
||||
|
||||
entrypoint!(process_instruction);
|
||||
@ -13,6 +13,6 @@ fn process_instruction(
|
||||
_accounts: &[AccountInfo],
|
||||
_instruction_data: &[u8],
|
||||
) -> ProgramResult {
|
||||
info!("rand");
|
||||
msg!("rand");
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user