mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-29 15:09:49 +00:00
NonTransfer should be a superset of collator selection (#1385)
* This should ideally be set. * Not convinced guard order is always guarenteed. * assets / uniques should not be included. * correction
This commit is contained in:
1 parent
ad6fe6d191
commit
39a5f24477
3 files changed
+6
No files matched your search
@@ -377,6 +377,7 @@ impl InstanceFilter<Call> for ProxyType {
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
fn is_superset(&self, o: &Self) -> bool {
|
||||
match (self, o) {
|
||||
(x, y) if x == y => true,
|
||||
@@ -384,6 +385,7 @@ impl InstanceFilter<Call> for ProxyType {
|
||||
(_, ProxyType::Any) => false,
|
||||
(ProxyType::Assets, ProxyType::AssetOwner) => true,
|
||||
(ProxyType::Assets, ProxyType::AssetManager) => true,
|
||||
(ProxyType::NonTransfer, ProxyType::Collator) => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -407,6 +407,7 @@ impl InstanceFilter<Call> for ProxyType {
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
fn is_superset(&self, o: &Self) -> bool {
|
||||
match (self, o) {
|
||||
(x, y) if x == y => true,
|
||||
@@ -414,6 +415,7 @@ impl InstanceFilter<Call> for ProxyType {
|
||||
(_, ProxyType::Any) => false,
|
||||
(ProxyType::Assets, ProxyType::AssetOwner) => true,
|
||||
(ProxyType::Assets, ProxyType::AssetManager) => true,
|
||||
(ProxyType::NonTransfer, ProxyType::Collator) => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -372,6 +372,7 @@ impl InstanceFilter<Call> for ProxyType {
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
fn is_superset(&self, o: &Self) -> bool {
|
||||
match (self, o) {
|
||||
(x, y) if x == y => true,
|
||||
@@ -379,6 +380,7 @@ impl InstanceFilter<Call> for ProxyType {
|
||||
(_, ProxyType::Any) => false,
|
||||
(ProxyType::Assets, ProxyType::AssetOwner) => true,
|
||||
(ProxyType::Assets, ProxyType::AssetManager) => true,
|
||||
(ProxyType::NonTransfer, ProxyType::Collator) => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user