Cleanup new_result_with_negative_lamports (#8286)

This commit is contained in:
Jack May 2020-02-14 13:58:33 -08:00 committed by GitHub
parent 17fb8258e5
commit a0bcbf70d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ pub enum InstructionError {
impl InstructionError {
pub fn new_result_with_negative_lamports() -> Self {
InstructionError::CustomError(SystemError::ResultWithNegativeLamports as u32)
SystemError::ResultWithNegativeLamports.into()
}
}