Skip to content

Commit

Permalink
add standard exit code for non-payable functions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexytsu committed Mar 7, 2023
1 parent 7c44970 commit 6c22222
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/src/error/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ impl ExitCode {
pub const USR_ASSERTION_FAILED: ExitCode = ExitCode::new(24);
/// The requested operation cannot be performed in "read-only" mode.
pub const USR_READ_ONLY: ExitCode = ExitCode::new(25);
// pub const RESERVED_25: ExitCode = ExitCode::new(25);
// pub const RESERVED_26: ExitCode = ExitCode::new(26);
/// The method cannot handle a transfer of value.
pub const USR_NOT_PAYABLE: ExitCode = ExitCode::new(26);
// pub const RESERVED_27: ExitCode = ExitCode::new(27);
// pub const RESERVED_28: ExitCode = ExitCode::new(28);
// pub const RESERVED_29: ExitCode = ExitCode::new(29);
Expand Down

0 comments on commit 6c22222

Please sign in to comment.