Enforce an executable's rent exemption in the runtime (#9134) (#9191)

(cherry picked from commit 130c0b484d)

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2020-03-31 11:57:19 -07:00
committed by GitHub
parent b079564a13
commit 220a369efa
6 changed files with 110 additions and 92 deletions

View File

@@ -130,6 +130,10 @@ pub enum InstructionError {
/// Executable account's lamports modified
#[error("instruction changed the balance of a executable account")]
ExecutableLamportChange,
/// Executable accounts must be rent exempt
#[error("executable accounts must be rent exempt")]
ExecutableAccountNotRentExempt,
}
impl InstructionError {