Skip to content
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

Open
wants to merge 6 commits into
base: kiz-frame-umbrella-in-pallets
Choose a base branch
from

Conversation

re-gius
Copy link

@re-gius re-gius commented Oct 10, 2024

Sub-task of PR #5995

Integration

These changes should not require any integration effort.

@re-gius re-gius changed the base branch from master to kiz-frame-umbrella-in-pallets October 10, 2024 16:44
@re-gius re-gius added T2-pallets This PR/Issue is related to a particular pallet. T1-FRAME This PR/Issue is related to core FRAME, the framework. and removed T2-pallets This PR/Issue is related to a particular pallet. labels Oct 10, 2024
@re-gius re-gius marked this pull request as ready for review October 11, 2024 07:35
@re-gius re-gius requested a review from a team as a code owner October 11, 2024 07:35
@re-gius re-gius self-assigned this Oct 11, 2024
Copy link
Contributor

@seadanda seadanda left a 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

substrate/frame/proxy/src/benchmarking.rs Outdated Show resolved Hide resolved
@@ -20,8 +20,7 @@
#![cfg(feature = "runtime-benchmarks")]

use super::*;
#[allow(deprecated)]
use frame::benchmarking::v1::*;
use frame::benchmarking::v2::*;
Copy link
Contributor

@seadanda seadanda Oct 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
use frame::benchmarking::v2::*;
use frame::benchmarking::prelude::*;

edited

Copy link
Contributor

@seadanda seadanda Oct 11, 2024

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::*;
Copy link
Contributor

@seadanda seadanda Oct 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
use frame::benchmarking::v2::*;
use frame::benchmarking::prelude::*;

Co-authored-by: Dónal Murray <donal.murray@parity.io>
@paritytech-review-bot paritytech-review-bot bot requested a review from a team October 11, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T1-FRAME This PR/Issue is related to core FRAME, the framework.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants