Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

XCM: Introduce pallet_assets::Config::CreateOrigin #6126

Closed
Tracked by #925
gavofyork opened this issue Oct 7, 2022 · 0 comments · Fixed by paritytech/substrate#12586
Closed
Tracked by #925

XCM: Introduce pallet_assets::Config::CreateOrigin #6126

gavofyork opened this issue Oct 7, 2022 · 0 comments · Fixed by paritytech/substrate#12586
Assignees
Labels
J0-enhancement An additional feature request.

Comments

@gavofyork
Copy link
Member

pallet_uniques already has an item CreateOrigin in its Config trait. The equivalent item should be introduced into the Assets pallet.

It should look basically like this:

/// Standard class creation is only allowed if the origin attempting it and the class are
/// in this set.
type CreateOrigin: EnsureOriginWithArg<
	Success = Self::AccountId,
	Self::Origin,
	Self::ClassId,
>;

fn create should be altered to respect it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J0-enhancement An additional feature request.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants