Skip to content

Commit

Permalink
Only root can create assets (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
olanod authored Jan 17, 2024
1 parent 390e6fc commit 9c4fb1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/kreivo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use frame_support::{
fungible::HoldConsideration,
tokens::{PayFromAccount, UnityAssetBalanceConversion},
AsEnsureOriginWithArg, ConstBool, ConstU32, ConstU64, ConstU8, Contains, EitherOfDiverse, LinearStoragePrice,
TransformOrigin,
NeverEnsureOrigin, TransformOrigin,
},
weights::{constants::RocksDbWeight, ConstantMultiplier, Weight},
BoundedVec, PalletId,
Expand Down Expand Up @@ -533,7 +533,7 @@ impl pallet_assets::Config<KreivoAssetsInstance> for Runtime {
type AssetIdParameter = parity_scale_codec::Compact<AssetIdForTrustBackedAssets>;
type Currency = Balances;
/// Only root can create assets and force state changes.
type CreateOrigin = AsEnsureOriginWithArg<EnsureSigned<AccountId>>;
type CreateOrigin = AsEnsureOriginWithArg<NeverEnsureOrigin<AccountId>>;
type ForceOrigin = AssetsForceOrigin;
type AssetDeposit = AssetDeposit;
type MetadataDepositBase = MetadataDepositBase;
Expand Down

0 comments on commit 9c4fb1f

Please sign in to comment.