Add msg! macro for program logging, deprecate info! macro (#13885)

(cherry picked from commit 6705b5a98c)

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
mergify[bot]
2020-12-01 06:05:31 +00:00
committed by GitHub
parent 4f4a0b9dc8
commit 3955778cb6
20 changed files with 158 additions and 137 deletions

View File

@@ -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(())
}