From 50ae1082e121da9e205f93dbd859e3293e5d2b49 Mon Sep 17 00:00:00 2001 From: Vlad Proshchavaiev <32250097+F3Joule@users.noreply.github.com> Date: Wed, 29 Nov 2023 08:32:44 +0200 Subject: [PATCH] Filter our force_transfer call --- runtime/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 3d706016..fcd9fd20 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -275,9 +275,11 @@ impl Contains for BaseFilter { fn contains(c: &RuntimeCall) -> bool { let is_set_balance = matches!(c, RuntimeCall::Balances(pallet_balances::Call::set_balance { .. })); + let is_force_transfer = + matches!(c, RuntimeCall::Balances(pallet_balances::Call::force_transfer { .. })); match *c { - RuntimeCall::Balances(..) if is_set_balance => false, + RuntimeCall::Balances(..) if is_set_balance || is_force_transfer => false, _ => true, } }