Readonlyaccounts (#16743)

* lamports -> lamports()

* format
This commit is contained in:
Jeff Washington (jwash)
2021-04-22 15:04:55 -05:00
committed by GitHub
parent 636b5987af
commit fc12841d95
9 changed files with 20 additions and 16 deletions

View File

@@ -155,7 +155,7 @@ fn create_account(
// if it looks like the `to` account is already in use, bail
{
let to = &mut to.try_account_ref_mut()?;
if to.lamports > 0 {
if to.lamports() > 0 {
ic_msg!(
invoke_context,
"Create Account: account {:?} already in use",