Enforce only system program can allocate accounts (#6386)

This commit is contained in:
Jack May
2019-10-16 10:47:45 -07:00
committed by GitHub
parent 8dd24bc7d9
commit 1fd84cb52b
2 changed files with 30 additions and 8 deletions

View File

@ -70,6 +70,9 @@ pub enum InstructionError {
/// The instruction expected additional account keys
NotEnoughAccountKeys,
/// A non-system program changed the size of the account data
AccountDataSizeChanged,
/// 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.