Enable cross-chain Coretime region transfers (#3077)

This PR allows Coretime regions to be transferable via XCM.

---------

Co-authored-by: Dónal Murray <donal.murray@parity.io>
This commit is contained in:
Sergej Sakac
2024-01-27 13:06:38 +01:00
committed by GitHub
parent 5e5341da9b
commit 30b30bee59
4 changed files with 68 additions and 10 deletions
@@ -18,7 +18,7 @@
use super::*;
use frame_support::{
pallet_prelude::{DispatchResult, *},
traits::nonfungible::{Inspect, Transfer},
traits::nonfungible::{Inspect, Mutate, Transfer},
};
use sp_std::vec::Vec;
@@ -50,3 +50,7 @@ impl<T: Config> Transfer<T::AccountId> for Pallet<T> {
Self::do_transfer((*index).into(), None, dest.clone()).map_err(Into::into)
}
}
// We don't allow any of the mutate operations, so the default implementation is used, which will
// return `TokenError::Unsupported` in case any of the operations is called.
impl<T: Config> Mutate<T::AccountId> for Pallet<T> {}