Add unit impl for XcmAssetTransfers trait (#3022)

If an Executor is required in some pallet's config, a mock might be
provided where `Executor = ()`. `()` already implements `ExecuteXcm`,
but not `XcmAssetTransfers`, which is also related. This PR just fixes
that so you can skip having to create a whole xcm configuration, which
is non-trivial right now.
This commit is contained in:
Francisco Aguirre authored and GitHub committed 2024-01-23 08:05:21 +00:00
1 parent 4c10fd2a41
commit 1417a0263d
1 file changed
+9
@@ -85,3 +85,12 @@ pub trait XcmAssetTransfers {
}
}
}
impl XcmAssetTransfers for () {
type IsReserve = ();
type IsTeleporter = ();
type AssetTransactor = ();
fn determine_for(_: &Asset, _: &Location) -> Result<TransferType, Error> {
return Err(Error::UnknownReserve);
}
}