Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmay committed Jan 9, 2021
1 parent d993281 commit 960b534
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion programs/bpf/c/src/invoked/instruction.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ const uint8_t VERIFY_WRITER = 4;
const uint8_t VERIFY_PRIVILEGE_ESCALATION = 5;
const uint8_t NESTED_INVOKE = 6;
const uint8_t RETURN_OK = 7;

8 changes: 8 additions & 0 deletions sdk/program/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,14 @@ pub enum InstructionError {

#[error("Incorrect authority provided")]
IncorrectAuthority,

/// Error returned by a program within a cross-program invocation call
/// chain. Allows on-chain programs to implement program-specific error
/// types and see them returned by the Solana runtime. A program-specific
/// error may be any type that is represented as or serialized to a u32
/// integer.
#[error("Program {0} invoke [{1}] error {2:#x}")
CustomInner(Pubkey, u16, u32},
}

#[derive(Debug, PartialEq, Clone, Serialize, Deserialize)]
Expand Down

0 comments on commit 960b534

Please sign in to comment.