-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
use frame_support::{decl_module, decl_storage, decl_event, ensure, print, decl_error, PalletId}; | ||
use frame_support::{ | ||
decl_module, decl_storage, decl_event, ensure, print, decl_error, | ||
PalletId, BoundedVec, bounded_vec::TryAppendValue, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PalletId, BoundedVec, bounded_vec::TryAppendValue, | |
PalletId, BoundedVec, |
Hmm are you sure we need this? We implemented it directly for storage::types
so we won't need to import again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did get a compiler issue. let me see
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error[E0599]: no function or associated item named `try_append` found for struct `Approvals<T, I>` in the current scope
--> frame/treasury/src/lib.rs:329:23
|
178 | decl_storage! {
| ------------- function or associated item `try_append` not found for this
...
329 | Approvals::<T, I>::try_append(proposal_id).map_err(|_| Error::<T, I>::TooManyApprovals)?;
| ^^^^^^^^^^ function or associated item not found in `Approvals<T, I>`
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
66 | use crate::sp_api_hidden_includes_decl_storage::hidden_include::bounded_vec::TryAppendValue;
If you know a better fix, happy to accept a follow up pr
/benchmark runtime pallet pallet_treasury |
Finished benchmark for branch: shawntabrizi-treasury-bounded Benchmark: Benchmark Runtime Pallet cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_treasury --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/treasury/src/weights.rs --template=./.maintain/frame-weight-template.hbs ResultsPallet: "pallet_treasury", Extrinsic: "propose_spend", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
|
…/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/treasury/src/weights.rs --template=./.maintain/frame-weight-template.hbs
bot merge |
Waiting for commit status. |
Merge aborted: Checks failed for 5728fa8 |
bot merge |
Trying merge. |
Helps with paritytech/polkadot-sdk#323
This adds an upper bound to the number of treasury proposals that can be in the queue for spending.
This will be used for benchmarking the PoV size.
polkadot companion: paritytech/polkadot#2932