Skip to content

Commit

Permalink
disallow tweaking sub-ids from any proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
kianenigma committed Dec 23, 2024
1 parent 2e73a6c commit c2d3b05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion system-parachains/people/people-kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,11 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
c,
RuntimeCall::Balances { .. } |
// `request_judgement` puts up a deposit to transfer to a registrar
RuntimeCall::Identity(pallet_identity::Call::request_judgement { .. })
RuntimeCall::Identity(pallet_identity::Call::request_judgement { .. }) |
// `set_subs`, `add_sub`, `quite_sub` will take and repatriate deposits from the proxied account, should not be allowed.
RuntimeCall::Identity(pallet_identity::Call::add_sub { .. }) |
RuntimeCall::Identity(pallet_identity::Call::set_subs { .. }) |
RuntimeCall::Identity(pallet_identity::Call::quit_sub { .. })
),
ProxyType::CancelProxy => matches!(
c,
Expand Down
6 changes: 5 additions & 1 deletion system-parachains/people/people-polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,11 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
c,
RuntimeCall::Balances { .. } |
// `request_judgement` puts up a deposit to transfer to a registrar
RuntimeCall::Identity(pallet_identity::Call::request_judgement { .. })
RuntimeCall::Identity(pallet_identity::Call::request_judgement { .. }) |
// `set_subs`, `add_sub`, `quite_sub` will take and repatriate deposits from the proxied account, should not be allowed.
RuntimeCall::Identity(pallet_identity::Call::add_sub { .. }) |
RuntimeCall::Identity(pallet_identity::Call::set_subs { .. }) |
RuntimeCall::Identity(pallet_identity::Call::quit_sub { .. })
),
ProxyType::CancelProxy => matches!(
c,
Expand Down

0 comments on commit c2d3b05

Please sign in to comment.