Skip to content

Commit

Permalink
chore: panicking error to unimplemented
Browse files Browse the repository at this point in the history
  • Loading branch information
clostao committed Nov 7, 2023
1 parent c08207d commit db1416e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/custom-balances/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ pub mod pallet {

fn make_free_balance_be(
_who: &T::AccountId,
_balance: Self::Balance,
balance: Self::Balance,
) -> SignedImbalance<Self::Balance, Self::PositiveImbalance> {
panic!("make_free_balance_be is not allowed in this pallet")
SignedImbalance::Positive(NeutralImbalance::new(balance))
}
}

Expand Down

0 comments on commit db1416e

Please sign in to comment.