mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-01 04:31:02 +00:00
Disable Calls to Identity Pallet (#1476)
This PR filters calls from the Identity pallet from all Relay Chain runtimes as preparation to move the identity state and logic to a system parachain within each network. After this change is deployed to a runtime, no more changes such as adding new sub-identities will be possible. The frozen state will be part of the genesis state of the system chain. After the system chain launches, the pallet and all state will be removed from each Relay Chain. Applications and UIs that render display information from this pallet will need to read from the system chain when it launches.
This commit is contained in:
@@ -171,7 +171,9 @@ impl<Bridges: ExporterFor, Router: SendXcm, UniversalLocation: Get<InteriorMulti
|
||||
let xcm = msg.take().ok_or(MissingArgument)?;
|
||||
|
||||
// find exporter
|
||||
let Some((bridge, maybe_payment)) = Bridges::exporter_for(&remote_network, &remote_location, &xcm) else {
|
||||
let Some((bridge, maybe_payment)) =
|
||||
Bridges::exporter_for(&remote_network, &remote_location, &xcm)
|
||||
else {
|
||||
// We need to make sure that msg is not consumed in case of `NotApplicable`.
|
||||
*msg = Some(xcm);
|
||||
return Err(SendError::NotApplicable)
|
||||
@@ -236,7 +238,9 @@ impl<Bridges: ExporterFor, Router: SendXcm, UniversalLocation: Get<InteriorMulti
|
||||
let xcm = msg.take().ok_or(MissingArgument)?;
|
||||
|
||||
// find exporter
|
||||
let Some((bridge, maybe_payment)) = Bridges::exporter_for(&remote_network, &remote_location, &xcm) else {
|
||||
let Some((bridge, maybe_payment)) =
|
||||
Bridges::exporter_for(&remote_network, &remote_location, &xcm)
|
||||
else {
|
||||
// We need to make sure that msg is not consumed in case of `NotApplicable`.
|
||||
*msg = Some(xcm);
|
||||
return Err(SendError::NotApplicable)
|
||||
|
||||
Reference in New Issue
Block a user