mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 04:11:07 +00:00
Generate storage info for treasury pallet (#9368)
This commit is contained in:
@@ -62,7 +62,7 @@ mod tests;
|
||||
mod benchmarking;
|
||||
pub mod weights;
|
||||
|
||||
use codec::{Encode, Decode};
|
||||
use codec::{Encode, Decode, MaxEncodedLen};
|
||||
|
||||
use sp_std::prelude::*;
|
||||
use sp_runtime::{
|
||||
@@ -116,7 +116,7 @@ pub type ProposalIndex = u32;
|
||||
|
||||
/// A spending proposal.
|
||||
#[cfg_attr(feature = "std", derive(serde::Serialize, serde::Deserialize))]
|
||||
#[derive(Encode, Decode, Clone, PartialEq, Eq, RuntimeDebug)]
|
||||
#[derive(Encode, Decode, Clone, PartialEq, Eq, MaxEncodedLen, RuntimeDebug)]
|
||||
pub struct Proposal<AccountId, Balance> {
|
||||
/// The account proposing it.
|
||||
proposer: AccountId,
|
||||
@@ -136,6 +136,7 @@ pub mod pallet {
|
||||
|
||||
#[pallet::pallet]
|
||||
#[pallet::generate_store(pub(super) trait Store)]
|
||||
#[pallet::generate_storage_info]
|
||||
pub struct Pallet<T, I = ()>(PhantomData<(T, I)>);
|
||||
|
||||
#[pallet::config]
|
||||
|
||||
Reference in New Issue
Block a user