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

@ -12,7 +12,7 @@ fn process_instruction(
// account 0 is the mint and not owned by this program, any debit of its lamports
// should result in a failed program execution. Test to ensure that this debit
// is seen by the runtime and fails as expected
*accounts[0].m.borrow_mut().lamports -= 1;
*accounts[0].borrow_mut().lamports -= 1;
SUCCESS
}