Cleanup new_result_with_negative_lamports (#8286)
This commit is contained in:
@ -98,7 +98,7 @@ pub enum InstructionError {
|
|||||||
|
|
||||||
impl InstructionError {
|
impl InstructionError {
|
||||||
pub fn new_result_with_negative_lamports() -> Self {
|
pub fn new_result_with_negative_lamports() -> Self {
|
||||||
InstructionError::CustomError(SystemError::ResultWithNegativeLamports as u32)
|
SystemError::ResultWithNegativeLamports.into()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user