program log pubkey as base58 (#12901)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
#![cfg(feature = "program")]
|
||||
|
||||
use crate::{account_info::AccountInfo, pubkey::Pubkey};
|
||||
use crate::account_info::AccountInfo;
|
||||
|
||||
/// Prints a string
|
||||
/// There are two forms and are fast
|
||||
@@ -63,18 +63,6 @@ pub fn sol_log_slice(slice: &[u8]) {
|
||||
}
|
||||
}
|
||||
|
||||
/// Prints a pubkey
|
||||
pub trait Log {
|
||||
fn log(&self);
|
||||
}
|
||||
impl Log for Pubkey {
|
||||
fn log(&self) {
|
||||
for (i, k) in self.to_bytes().iter().enumerate() {
|
||||
info!(0, 0, 0, i, *k);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Prints the hexadecimal representation of the program's input parameters
|
||||
///
|
||||
/// @param ka - A pointer to an array of `AccountInfo` to print
|
||||
|
||||
Reference in New Issue
Block a user