Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 8a3ae36

Browse files
committed
nudge
1 parent 64aeae7 commit 8a3ae36

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sdk/src/instruction.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ pub enum InstructionError {
6666

6767
impl InstructionError {
6868
pub fn new_result_with_negative_lamports() -> Self {
69-
InstructionError::ProgramError(ProgramError::CustomError(
70-
SystemError::ResultWithNegativeLamports as u32,
71-
))
69+
InstructionError::ProgramError(SystemError::ResultWithNegativeLamports.into())
7270
}
7371
}
7472

0 commit comments

Comments
 (0)