Skip to content

Commit 61b5541

Browse files
committed
refactor(runtime): remove add_proxy from contract call filter
Remove add_proxy from whitelisted contract calls as it should be called via chain extension instead of direct runtime call.
1 parent 00dc850 commit 61b5541

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

runtime/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,10 +1491,7 @@ pub struct ContractCallFilter;
14911491
impl Contains<RuntimeCall> for ContractCallFilter {
14921492
fn contains(call: &RuntimeCall) -> bool {
14931493
match call {
1494-
RuntimeCall::Proxy(inner) => matches!(
1495-
inner,
1496-
pallet_proxy::Call::proxy { .. } | pallet_proxy::Call::add_proxy { .. }
1497-
),
1494+
RuntimeCall::Proxy(inner) => matches!(inner, pallet_proxy::Call::proxy { .. }),
14981495
_ => false,
14991496
}
15001497
}

0 commit comments

Comments
 (0)