Add missing ProgramError to InstructionError mappings (#16231) (#17723)

* Add missing ProgramError to InstructionError mappings

* add note

* Clarify process of adding new program error

(cherry picked from commit 83b9a046d1)

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2021-06-04 00:25:25 +00:00
committed by GitHub
parent 96de58b3a4
commit 498bf911eb
4 changed files with 64 additions and 38 deletions

View File

@@ -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)]