Whitelist pallet preimage provider upgrade#12834
Conversation
frame/whitelist/src/benchmarking.rs
Outdated
| ); | ||
| ensure!( | ||
| T::PreimageProvider::preimage_requested(&call_hash), | ||
| <T::Preimages as QueryPreimage>::is_requested(&call_hash), |
There was a problem hiding this comment.
nit
| <T::Preimages as QueryPreimage>::is_requested(&call_hash), | |
| T::Preimages::is_requested(&call_hash), |
There was a problem hiding this comment.
updated it everywhere.
frame/whitelist/src/lib.rs
Outdated
| WhitelistedCallDispatched { call_hash: T::Hash, result: DispatchResultWithPostInfo }, | ||
| CallWhitelisted { call_hash: Hash }, | ||
| WhitelistedCallRemoved { call_hash: Hash }, | ||
| WhitelistedCallDispatched { call_hash: Hash, result: DispatchResultWithPostInfo }, |
There was a problem hiding this comment.
Maybe you can change these to H256 to easier spot that it is not the standard T::Hash.
There was a problem hiding this comment.
Could also be preimages::Hash as PreimageHash
frame/whitelist/src/lib.rs
Outdated
|
|
||
| #[pallet::storage] | ||
| pub type WhitelistedCall<T: Config> = StorageMap<_, Twox64Concat, T::Hash, (), OptionQuery>; | ||
| pub type WhitelistedCall<T: Config> = StorageMap<_, Twox64Concat, Hash, (), OptionQuery>; |
There was a problem hiding this comment.
I think we always use Hash = H256 but it would need a migration if some chains use something different.
Probably noteworthy for the change-log.
|
/cmd queue -c bench-bot $ pallet dev pallet_whitelist |
|
@ggwpez https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2120335 was started for your command Comment |
|
@ggwpez Command |
|
will wait for the companion to be approved, before merging. |
* whitelist preimage provider upgrade * rustdocs unresolved link error fix * ".git/.scripts/bench-bot.sh" pallet dev pallet_whitelist * PreimageHash alias, remove type annotation Co-authored-by: command-bot <>
* whitelist preimage provider upgrade * rustdocs unresolved link error fix * ".git/.scripts/bench-bot.sh" pallet dev pallet_whitelist * PreimageHash alias, remove type annotation Co-authored-by: command-bot <>
Attempt to solve #12821
polkadot companion: paritytech/polkadot#6392