chore: regenerate umbrella crate, fix feature propagation
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
|
||||
//! # PEZ Treasury Pezpallet
|
||||
//!
|
||||
//! A pezpallet for managing the PEZ token distribution and treasury with automated halving mechanics.
|
||||
//! A pezpallet for managing the PEZ token distribution and treasury with automated halving
|
||||
//! mechanics.
|
||||
//!
|
||||
//! ## Overview
|
||||
//!
|
||||
@@ -92,8 +93,8 @@ use pezframe_support::{
|
||||
PalletId,
|
||||
};
|
||||
use pezframe_system::pezpallet_prelude::BlockNumberFor;
|
||||
use scale_info::TypeInfo;
|
||||
use pezsp_runtime::traits::{AccountIdConversion, Saturating, Zero};
|
||||
use scale_info::TypeInfo;
|
||||
|
||||
#[pezframe_support::pezpallet]
|
||||
pub mod pezpallet {
|
||||
|
||||
@@ -91,7 +91,9 @@ pub mod v1 {
|
||||
}
|
||||
|
||||
#[cfg(feature = "try-runtime")]
|
||||
fn post_upgrade(state: pezsp_std::vec::Vec<u8>) -> Result<(), pezsp_runtime::TryRuntimeError> {
|
||||
fn post_upgrade(
|
||||
state: pezsp_std::vec::Vec<u8>,
|
||||
) -> Result<(), pezsp_runtime::TryRuntimeError> {
|
||||
use codec::Decode;
|
||||
|
||||
let (
|
||||
@@ -199,7 +201,9 @@ pub mod v2 {
|
||||
}
|
||||
|
||||
#[cfg(feature = "try-runtime")]
|
||||
fn post_upgrade(_state: pezsp_std::vec::Vec<u8>) -> Result<(), pezsp_runtime::TryRuntimeError> {
|
||||
fn post_upgrade(
|
||||
_state: pezsp_std::vec::Vec<u8>,
|
||||
) -> Result<(), pezsp_runtime::TryRuntimeError> {
|
||||
log::info!("✅ Post-upgrade check passed for pezpallet-pez-treasury v2");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -97,8 +97,9 @@ impl pezpallet_assets::Config for Test {
|
||||
type AssetId = u32;
|
||||
type AssetIdParameter = u32;
|
||||
type Currency = Balances;
|
||||
type CreateOrigin =
|
||||
pezframe_support::traits::AsEnsureOriginWithArg<pezframe_system::EnsureSigned<Self::AccountId>>;
|
||||
type CreateOrigin = pezframe_support::traits::AsEnsureOriginWithArg<
|
||||
pezframe_system::EnsureSigned<Self::AccountId>,
|
||||
>;
|
||||
type ForceOrigin = pezframe_system::EnsureRoot<Self::AccountId>;
|
||||
type AssetDeposit = AssetDeposit;
|
||||
type AssetAccountDeposit = ConstU128<0>;
|
||||
|
||||
Reference in New Issue
Block a user