Skip to content

Commit

Permalink
name
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseAbram committed Mar 29, 2024
1 parent 8563001 commit 54c8b8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/programs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ pub mod pallet {
/// Program is being used by an account
ProgramInUse,
/// Arithmitic overflow error
StorageOverflow,
ArithmeticError,
}

#[pallet::call]
Expand All @@ -182,7 +182,7 @@ pub mod pallet {
let new_program_length = new_program
.len()
.checked_add(interface_description.len())
.ok_or(Error::<T>::StorageOverflow)?;
.ok_or(Error::<T>::ArithmeticError)?;

ensure!(
new_program_length as u32 <= T::MaxBytecodeLength::get(),
Expand Down

0 comments on commit 54c8b8d

Please sign in to comment.