fix(xcm): correct MintLocation for AH migration (RC 1_020_007, AH 1_020_006)
Relay Chain no longer has mint authority — teleport tracking set to None. Asset Hub is now the canonical minter with MintLocation::Local tracking. RC: LocalCheckAccount → TeleportTracking = None AH: () → TeleportTracking = Some((CheckingAccount, MintLocation::Local))
This commit is contained in:
@@ -174,7 +174,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||
spec_name: alloc::borrow::Cow::Borrowed("pezkuwichain"),
|
||||
impl_name: alloc::borrow::Cow::Borrowed("parity-pezkuwichain"),
|
||||
authoring_version: 0,
|
||||
spec_version: 1_020_006,
|
||||
spec_version: 1_020_007,
|
||||
impl_version: 0,
|
||||
apis: RUNTIME_API_VERSIONS,
|
||||
transaction_version: 26,
|
||||
|
||||
@@ -55,7 +55,8 @@ parameter_types! {
|
||||
pub const ThisNetwork: NetworkId = NetworkId::ByGenesis(PEZKUWICHAIN_GENESIS_HASH);
|
||||
pub UniversalLocation: InteriorLocation = ThisNetwork::get().into();
|
||||
pub CheckAccount: AccountId = XcmPallet::check_account();
|
||||
pub LocalCheckAccount: (AccountId, MintLocation) = (CheckAccount::get(), MintLocation::Local);
|
||||
/// Pezkuwi relay does not have mint authority anymore after the Asset Hub migration.
|
||||
pub TeleportTracking: Option<(AccountId, MintLocation)> = None;
|
||||
pub TreasuryAccount: AccountId = Treasury::account_id();
|
||||
}
|
||||
|
||||
@@ -81,8 +82,7 @@ pub type LocalAssetTransactor = FungibleAdapter<
|
||||
LocationConverter,
|
||||
// Our chain's account ID type (we can't get away without mentioning it explicitly):
|
||||
AccountId,
|
||||
// We track our teleports in/out to keep total issuance correct.
|
||||
LocalCheckAccount,
|
||||
TeleportTracking,
|
||||
>;
|
||||
|
||||
/// The means that we convert the XCM message origin location into a local dispatch origin.
|
||||
|
||||
Reference in New Issue
Block a user