-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade Proxy and Multisig pallets to Benchmarking V2 #6018
base: kiz-frame-umbrella-in-pallets
Are you sure you want to change the base?
Upgrade Proxy and Multisig pallets to Benchmarking V2 #6018
Conversation
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.
Looks like a few things need to be tidied up - make sure you're passing --features=runtime-benchmarks
when you check
@@ -20,8 +20,7 @@ | |||
#![cfg(feature = "runtime-benchmarks")] | |||
|
|||
use super::*; | |||
#[allow(deprecated)] | |||
use frame::benchmarking::v1::*; | |||
use frame::benchmarking::v2::*; |
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.
use frame::benchmarking::v2::*; | |
use frame::benchmarking::prelude::*; |
edited
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.
Ah wait that's the umbrella crate. You should be able to use that too, v2
doesn't exist at the top level though, I think you get it via the prelude
. edited the suggestion to update it
@@ -22,8 +22,7 @@ | |||
use super::*; | |||
use crate::Pallet as Proxy; | |||
use alloc::{boxed::Box, vec}; | |||
#[allow(deprecated)] | |||
use frame::benchmarking::v1::*; | |||
use frame::benchmarking::v2::*; |
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.
use frame::benchmarking::v2::*; | |
use frame::benchmarking::prelude::*; |
Co-authored-by: Dónal Murray <donal.murray@parity.io>
Sub-task of PR #5995
Integration
These changes should not require any integration effort.