fix(runtime): fix CreatePresaleOrigin type mismatch in asset-hub runtime

EnsureRoot::Success = () but presale pallet requires Success = AccountId.
Switch to EnsureSigned<AccountId> so the transaction signer becomes
the presale owner — consistent with mock.rs and pallet semantics.
This commit is contained in:
Kurdistan Tech Ministry committed 2026-04-22 07:52:07 +03:00
1 parent 9d5b101fd7
commit d98dfafc49
1 file changed
+1 -1
@@ -1276,7 +1276,7 @@ impl pezpallet_presale::Config for Runtime {
type MaxContributors = PresaleMaxContributors;
type MaxBonusTiers = PresaleMaxBonusTiers;
type MaxWhitelistedAccounts = PresaleMaxWhitelistedAccounts;
type CreatePresaleOrigin = EnsureRoot<AccountId>;
type CreatePresaleOrigin = EnsureSigned<AccountId>;
type EmergencyOrigin = EnsureRoot<AccountId>;
type PresaleWeightInfo = pezpallet_presale::BizinikiwiWeight<Runtime>;
}