add executable checks to verify_instruction (#5326)

This commit is contained in:
Rob Walker
2019-07-29 15:29:20 -07:00
committed by GitHub
parent 4e093525c7
commit 50a991fdf9
2 changed files with 128 additions and 26 deletions

View File

@ -61,6 +61,9 @@ pub enum InstructionError {
/// An account was referenced more than once in a single instruction
DuplicateAccountIndex,
/// Executable bit on account changed, but shouldn't have
ExecutableModified,
/// CustomError allows on-chain programs to implement program-specific error types and see
/// them returned by the Solana runtime. A CustomError may be any type that is represented
/// as or serialized to a u32 integer.