Add missing ProgramError to InstructionError mappings (#16231)
* Add missing ProgramError to InstructionError mappings * add note * Clarify process of adding new program error
This commit is contained in:
@ -215,6 +215,8 @@ pub enum InstructionError {
|
||||
/// Unsupported sysvar
|
||||
#[error("Unsupported sysvar")]
|
||||
UnsupportedSysvar,
|
||||
// Note: For any new error added here an equivilent ProgramError and it's
|
||||
// conversions must also be added
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize)]
|
||||
|
Reference in New Issue
Block a user