Skip to content
Snippets Groups Projects
Commit 6d2626eb authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

fix #284

parent c553c09f
No related branches found
No related tags found
1 merge request!307mint UD instead of deposit + disable burn
...@@ -173,7 +173,12 @@ mod benches { ...@@ -173,7 +173,12 @@ mod benches {
pub struct BaseCallFilter; pub struct BaseCallFilter;
impl Contains<RuntimeCall> for BaseCallFilter { impl Contains<RuntimeCall> for BaseCallFilter {
fn contains(call: &RuntimeCall) -> bool { 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 { .. })
)
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment