Skip to content

Commit

Permalink
prdoc and some formating
Browse files Browse the repository at this point in the history
  • Loading branch information
ndkazu committed Nov 17, 2024
1 parent 0e907c4 commit ab0b870
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions prdoc/pr_6509.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json

title: Migrate pallet-democracy benchmark to v2

doc:
- audience: Runtime Dev
description: |-
Part of:

- #6202.

crates:
- name: pallet-democracy
bump: patch
4 changes: 2 additions & 2 deletions substrate/frame/democracy/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ mod benchmarks {
.expect("ExternalOrigin has no successful origin required for the benchmark");
assert_ok!(Democracy::<T>::external_propose(origin.clone(), make_proposal::<T>(0)));
let owner = MetadataOwner::External;
let proposer = funded_account::<T>("proposer", 0);
let _proposer = funded_account::<T>("proposer", 0);
let hash = note_preimage::<T>();
assert_ok!(Democracy::<T>::set_metadata(origin.clone(), owner.clone(), Some(hash)));

Expand Down Expand Up @@ -945,7 +945,7 @@ mod benchmarks {
ReferendumInfo::Finished { end: BlockNumberFor::<T>::zero(), approved: true },
);
let owner = MetadataOwner::Referendum(0);
let caller = funded_account::<T>("caller", 0);
let _caller = funded_account::<T>("caller", 0);
let hash = note_preimage::<T>();

#[extrinsic_call]
Expand Down

0 comments on commit ab0b870

Please sign in to comment.