Remove NotConcrete error (#3867)

# Description
- Link to issue: https://github.com/paritytech/polkadot-sdk/issues/3651

polkadot address: 19nSqFQorfF2HxD3oBzWM3oCh4SaCRKWt1yvmgaPYGCo71J
This commit is contained in:
Tin Chung
2024-04-18 13:44:49 +07:00
committed by GitHub
parent 305d311d5c
commit d591b16f6b
2 changed files with 6 additions and 5 deletions
+6 -3
View File
@@ -535,20 +535,24 @@ pub mod pallet {
LockNotFound, LockNotFound,
/// The unlock operation cannot succeed because there are still consumers of the lock. /// The unlock operation cannot succeed because there are still consumers of the lock.
InUse, InUse,
/// Invalid non-concrete asset.
InvalidAssetNotConcrete,
/// Invalid asset, reserve chain could not be determined for it. /// Invalid asset, reserve chain could not be determined for it.
#[codec(index = 21)]
InvalidAssetUnknownReserve, InvalidAssetUnknownReserve,
/// Invalid asset, do not support remote asset reserves with different fees reserves. /// Invalid asset, do not support remote asset reserves with different fees reserves.
#[codec(index = 22)]
InvalidAssetUnsupportedReserve, InvalidAssetUnsupportedReserve,
/// Too many assets with different reserve locations have been attempted for transfer. /// Too many assets with different reserve locations have been attempted for transfer.
#[codec(index = 23)]
TooManyReserves, TooManyReserves,
/// Local XCM execution incomplete. /// Local XCM execution incomplete.
#[codec(index = 24)]
LocalExecutionIncomplete, LocalExecutionIncomplete,
/// Could not decode XCM. /// Could not decode XCM.
#[codec(index = 25)]
UnableToDecode, UnableToDecode,
/// XCM encoded length is too large. /// XCM encoded length is too large.
/// Returned when an XCM encoded length is larger than `MaxXcmEncodedSize`. /// Returned when an XCM encoded length is larger than `MaxXcmEncodedSize`.
#[codec(index = 26)]
XcmTooLarge, XcmTooLarge,
} }
@@ -565,7 +569,6 @@ pub mod pallet {
impl<T: Config> From<AssetTransferError> for Error<T> { impl<T: Config> From<AssetTransferError> for Error<T> {
fn from(e: AssetTransferError) -> Self { fn from(e: AssetTransferError) -> Self {
match e { match e {
AssetTransferError::NotConcrete => Error::<T>::InvalidAssetNotConcrete,
AssetTransferError::UnknownReserve => Error::<T>::InvalidAssetUnknownReserve, AssetTransferError::UnknownReserve => Error::<T>::InvalidAssetUnknownReserve,
} }
} }
@@ -23,8 +23,6 @@ use xcm::prelude::*;
/// Errors related to determining asset transfer support. /// Errors related to determining asset transfer support.
#[derive(Copy, Clone, Encode, Decode, Eq, PartialEq, Debug, TypeInfo)] #[derive(Copy, Clone, Encode, Decode, Eq, PartialEq, Debug, TypeInfo)]
pub enum Error { pub enum Error {
/// Invalid non-concrete asset.
NotConcrete,
/// Reserve chain could not be determined for assets. /// Reserve chain could not be determined for assets.
UnknownReserve, UnknownReserve,
} }