From 6d2626eb40aae0cd09619be82a0340ff6db399d0 Mon Sep 17 00:00:00 2001
From: Hugo Trentesaux <hugo@trentesaux.fr>
Date: Tue, 14 Jan 2025 19:38:55 +0100
Subject: [PATCH] fix #284

---
 runtime/gdev/src/lib.rs | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/runtime/gdev/src/lib.rs b/runtime/gdev/src/lib.rs
index cecb06be5..4b7d04278 100644
--- a/runtime/gdev/src/lib.rs
+++ b/runtime/gdev/src/lib.rs
@@ -173,7 +173,12 @@ mod benches {
 pub struct BaseCallFilter;
 impl Contains<RuntimeCall> for BaseCallFilter {
     fn contains(call: &RuntimeCall) -> bool {
-        !matches!(call, RuntimeCall::Session(_))
+        // not allowed to run session calls directly
+        // not allowed to burn currency
+        !matches!(
+            call,
+            RuntimeCall::Session(_) | RuntimeCall::Balances(pallet_balances::Call::burn { .. })
+        )
     }
 }
 
-- 
GitLab