Skip to content
Snippets Groups Projects
Commit 2dcbad53 authored by Keith Yeung's avatar Keith Yeung Committed by GitHub
Browse files

Generate storage info for treasury pallet (#9368)

parent 5a65bf55
No related merge requests found
......@@ -13,7 +13,7 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
codec = { package = "parity-scale-codec", version = "2.2.0", default-features = false, features = ["derive", "max-encoded-len"] }
serde = { version = "1.0.126", features = ["derive"], optional = true }
impl-trait-for-tuples = "0.2.1"
......
......@@ -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]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment