Add Rust BPF RefCell borrow helpers (#8047)

This commit is contained in:
Jack May
2020-01-30 20:40:27 -08:00
committed by GitHub
parent a0964bb2c2
commit 2226c1b75c
5 changed files with 61 additions and 8 deletions

View File

@@ -75,10 +75,10 @@ pub enum InstructionError {
/// The instruction expected an executable account
AccountNotExecutable,
/// Failed to borrow a reference to an account, already borrowed
/// Failed to borrow a reference to account data, already borrowed
AccountBorrowFailed,
/// Account has an outstanding reference after a program's execution
/// Account data has an outstanding reference after a program's execution
AccountBorrowOutstanding,
/// The same account was multiply passed to an on-chain program's entrypoint, but the program