Skip to content

Commit

Permalink
proxy: Add utility pallet access to PodOperation proxy (#1196)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdamian authored Feb 10, 2023
1 parent 94d23b1 commit 6418e16
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions runtime/development/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,9 +544,12 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
RuntimeCall::Keystore(pallet_keystore::Call::add_keys { .. })
| RuntimeCall::Keystore(pallet_keystore::Call::revoke_keys { .. })
),
ProxyType::PodOperation => {
matches!(c, RuntimeCall::Uniques(..) | RuntimeCall::Anchor(..))
}
ProxyType::PodOperation => matches!(
c,
RuntimeCall::Uniques(..)
| RuntimeCall::Anchor(..)
| RuntimeCall::Utility(pallet_utility::Call::batch_all { .. })
),
// This type of proxy is used only for authenticating with the centrifuge POD,
// having it here also allows us to validate authentication with on-chain data.
ProxyType::PodAuth => false,
Expand Down

0 comments on commit 6418e16

Please sign in to comment.