Skip to content

Commit f61f92e

Browse files
committed
Require fungible::Mutate on Currency item for benchmarking
1 parent d509dd8 commit f61f92e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pallets/registry/src/benchmarking.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use super::*;
66
use crate::Pallet as Registry;
77
use frame_benchmarking::v1::account;
88
use frame_benchmarking::v2::*;
9+
use frame_support::traits::tokens::fungible::Mutate;
910
use frame_system::RawOrigin;
1011

1112
use sp_runtime::traits::Bounded;

pallets/registry/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ pub mod pallet {
3939
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
4040

4141
// Currency type that will be used to place deposits on neurons
42-
type Currency: fungible::MutateHold<Self::AccountId, Reason = Self::RuntimeHoldReason>;
42+
type Currency: fungible::Mutate<Self::AccountId>
43+
+ fungible::MutateHold<Self::AccountId, Reason = Self::RuntimeHoldReason>;
4344

4445
// Weight information for extrinsics in this pallet.
4546
type WeightInfo: WeightInfo;

0 commit comments

Comments
 (0)