Cleanup usage of feature "program" (#7712)

This commit is contained in:
Jack May
2020-01-08 13:49:35 -08:00
committed by GitHub
parent 57858b8015
commit 09cff5e4cc
8 changed files with 93 additions and 26 deletions

View File

@@ -56,12 +56,6 @@ impl Pubkey {
Self::new(&rand::random::<[u8; 32]>())
}
pub fn log(&self) {
use crate::log::sol_log_64;
for (i, k) in self.0.iter().enumerate() {
sol_log_64(0, 0, 0, i as u64, u64::from(*k));
}
}
pub fn to_bytes(self) -> [u8; 32] {
self.0
}