Cleanup nits (#16211)

This commit is contained in:
Jack May
2021-03-30 12:16:21 -07:00
committed by GitHub
parent 54c68ea83f
commit f84e88f0a2
8 changed files with 42 additions and 32 deletions

View File

@ -176,30 +176,39 @@ pub enum InstructionError {
#[error("Cross-program invocation with unauthorized signer or writable account")]
PrivilegeEscalation,
/// Failed to create program execution environment
#[error("Failed to create program execution environment")]
ProgramEnvironmentSetupFailure,
/// Program failed to complete
#[error("Program failed to complete")]
ProgramFailedToComplete,
/// Program failed to compile
#[error("Program failed to compile")]
ProgramFailedToCompile,
/// Account is immutable
#[error("Account is immutable")]
Immutable,
/// Incorrect authority provided
#[error("Incorrect authority provided")]
IncorrectAuthority,
/// Failed to serialize or deserialize account data
#[error("Failed to serialize or deserialize account data: {0}")]
BorshIoError(String),
/// An account does not have enough lamports to be rent-exempt
#[error("An account does not have enough lamports to be rent-exempt")]
AccountNotRentExempt,
/// Invalid account owner
#[error("Invalid account owner")]
InvalidAccountOwner,
/// Program arithmetic overflowed
#[error("Program arithmetic overflowed")]
ArithmeticOverflow,
}