Skip to content

Commit

Permalink
fix(pallet-assets-holder): lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pandres95 committed Sep 6, 2024
1 parent 7c28175 commit 9ccc35c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions substrate/frame/assets-holder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ use frame_support::{
};
use frame_system::pallet_prelude::BlockNumberFor;

#[cfg(any(test, feature = "try-runtime"))]
use sp_runtime::{traits::CheckedAdd, ArithmeticError};

pub use pallet::*;

#[cfg(test)]
Expand Down Expand Up @@ -154,7 +151,10 @@ pub mod pallet {
impl<T: Config<I>, I: 'static> Pallet<T, I> {
#[cfg(any(test, feature = "try-runtime"))]
fn do_try_state() -> Result<(), sp_runtime::TryRuntimeError> {
use sp_runtime::traits::{Saturating, Zero};
use sp_runtime::{
traits::{CheckedAdd, Zero},
ArithmeticError,
};

for (asset, who, balance_on_hold) in BalancesOnHold::<T, I>::iter() {
ensure!(balance_on_hold != Zero::zero(), "zero on hold must not be in state");
Expand Down

0 comments on commit 9ccc35c

Please sign in to comment.