-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Trait Bounds for AssetId vs. MultiLocation #12738
Comments
It seems like removing /// A type that implements Serialize, DeserializeOwned and Debug when in std environment.
trait MaybeSerializeDeserialize: DeserializeOwned, Serialize; which means that the So I think that the solution here is to implement these traits for |
I'm not sure of the implementation constraints, but I do question this since the Uniques pallet's type CollectionId: Member + Parameter + MaxEncodedLen + Copy; I agree with you that the solution is probably to implement these for |
@joepetrowski You are right that is a bit weird. Maybe the reason for this is that the |
I learned that |
In order to support bridged/parachain assets on Statemint, we want to be able to use
type AssetId = MultiLocation
. However,MultiLocation
does not meet the bounds ofAssetId
.From c290950:
From gav-xcm-v3 (at aef0231):
We should either implement
HasCompact, MaybeSerializeDeserialize
forMultiLocation
, or relax the bounds on AssetId.Steps to reproduce
Try to compile
cumulus/joe-bridge-hub-westmint-assets
with this configuration:The text was updated successfully, but these errors were encountered: