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:
@@ -5,7 +5,7 @@ pub mod ristretto;
|
||||
use crate::ristretto::ristretto_mul;
|
||||
use curve25519_dalek::{constants::RISTRETTO_BASEPOINT_POINT, scalar::Scalar};
|
||||
use solana_program::{
|
||||
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, info, pubkey::Pubkey,
|
||||
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, msg, pubkey::Pubkey,
|
||||
};
|
||||
|
||||
fn test_ristretto_mul() -> ProgramResult {
|
||||
@@ -28,7 +28,7 @@ fn process_instruction(
|
||||
_accounts: &[AccountInfo],
|
||||
_instruction_data: &[u8],
|
||||
) -> ProgramResult {
|
||||
info!("Ristretto multiply");
|
||||
msg!("Ristretto multiply");
|
||||
|
||||
test_ristretto_mul()?;
|
||||
|
||||
|
Reference in New Issue
Block a user