Add account accessor functions (#7966)

This commit is contained in:
Jack May
2020-01-24 14:34:59 -08:00
committed by GitHub
parent 917067741a
commit 1b391dd36b
4 changed files with 33 additions and 29 deletions

View File

@@ -89,9 +89,9 @@ pub fn sol_log_params(accounts: &[AccountInfo], data: &[u8]) {
info!("- Key");
account.key.log();
info!("- Lamports");
info!(0, 0, 0, 0, *account.m.borrow().lamports);
info!(0, 0, 0, 0, account.lamports());
info!("- Account data length");
info!(0, 0, 0, 0, account.m.borrow().data.len());
info!(0, 0, 0, 0, account.data_len());
info!("- Owner");
account.owner.log();
}