From 5c028e0583b9870141d54c8fb1fadf5a8677c202 Mon Sep 17 00:00:00 2001 From: Chralt98 Date: Tue, 18 Jul 2023 09:29:11 +0200 Subject: [PATCH] add debug assert --- runtime/common/src/fees.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/common/src/fees.rs b/runtime/common/src/fees.rs index bf22bfeaf..a8d4563a1 100644 --- a/runtime/common/src/fees.rs +++ b/runtime/common/src/fees.rs @@ -51,10 +51,11 @@ macro_rules! impl_fee_types { // on_unbalanced is not implemented for other currencies than the native currency // https://github.com/paritytech/substrate/blob/85415fb3a452dba12ff564e6b093048eed4c5aad/frame/treasury/src/lib.rs#L618-L627 // https://github.com/paritytech/substrate/blob/5ea6d95309aaccfa399c5f72e5a14a4b7c6c4ca1/frame/treasury/src/lib.rs#L490 - let _ = >::resolve( + let res = >::resolve( &TreasuryPalletId::get().into_account_truncating(), fees_and_tips, ); + debug_assert!(res.is_ok()); } } };