mirror of
https://gitlab.com/pezkuwichain/pezkuwi-sdk.git
synced 2026-11-29 18:49:55 +00:00
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:
1 parent
9d5b101fd7
commit
d98dfafc49
1 file changed
+1
-1
@@ -1276,7 +1276,7 @@ impl pezpallet_presale::Config for Runtime {
|
|||||||
type MaxContributors = PresaleMaxContributors;
|
type MaxContributors = PresaleMaxContributors;
|
||||||
type MaxBonusTiers = PresaleMaxBonusTiers;
|
type MaxBonusTiers = PresaleMaxBonusTiers;
|
||||||
type MaxWhitelistedAccounts = PresaleMaxWhitelistedAccounts;
|
type MaxWhitelistedAccounts = PresaleMaxWhitelistedAccounts;
|
||||||
type CreatePresaleOrigin = EnsureRoot<AccountId>;
|
type CreatePresaleOrigin = EnsureSigned<AccountId>;
|
||||||
type EmergencyOrigin = EnsureRoot<AccountId>;
|
type EmergencyOrigin = EnsureRoot<AccountId>;
|
||||||
type PresaleWeightInfo = pezpallet_presale::BizinikiwiWeight<Runtime>;
|
type PresaleWeightInfo = pezpallet_presale::BizinikiwiWeight<Runtime>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user