diff --git a/pallets/custom-balances/src/lib.rs b/pallets/custom-balances/src/lib.rs index dc29c6e..899b89a 100644 --- a/pallets/custom-balances/src/lib.rs +++ b/pallets/custom-balances/src/lib.rs @@ -240,9 +240,9 @@ pub mod pallet { fn make_free_balance_be( _who: &T::AccountId, - _balance: Self::Balance, + balance: Self::Balance, ) -> SignedImbalance { - panic!("make_free_balance_be is not allowed in this pallet") + SignedImbalance::Positive(NeutralImbalance::new(balance)) } } diff --git a/pallets/custom-balances/src/tests.rs b/pallets/custom-balances/src/tests.rs index a88ca5c..de74034 100644 --- a/pallets/custom-balances/src/tests.rs +++ b/pallets/custom-balances/src/tests.rs @@ -322,17 +322,6 @@ fn settle_returns_error() { }); } -#[test] -#[should_panic] -fn make_free_balance_be_panics() { - new_test_ext().execute_with(|| { - >::make_free_balance_be( - &ZeroAddress::get().into(), - 0u128, - ); - }); -} - // Inspect functions #[test]