Skip to content

Commit cf18ca8

Browse files
committed
fix
1 parent f9146e6 commit cf18ca8

File tree

10 files changed

+25
-1
lines changed

10 files changed

+25
-1
lines changed

asset-registry/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ runtime-benchmarks = [
8484
"xcm-builder/runtime-benchmarks",
8585
"xcm-executor/runtime-benchmarks",
8686
"xcm/runtime-benchmarks",
87+
"orml-tokens/runtime-benchmarks",
8788
]
8889
try-runtime = [
8990
"frame-support/try-runtime",

asset-registry/src/mock/para.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ impl orml_tokens::Config for Runtime {
7777
type MaxReserves = ();
7878
type MaxLocks = ConstU32<50>;
7979
type DustRemovalWhitelist = Nothing;
80+
#[cfg(feature = "runtime-benchmarks")]
81+
type BenchmarkHelper = ();
8082
}
8183

8284
#[derive(scale_info::TypeInfo, Encode, Decode, Clone, Eq, PartialEq, Debug, MaxEncodedLen, DecodeWithMemTracking)]

currencies/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ orml-utilities = { path = "../utilities", version = "1.5.0", default-features =
2525
pallet-balances = { workspace = true, features = ["std"] }
2626
sp-core = { workspace = true, features = ["std"] }
2727

28-
orml_tokens = { package = "orml-tokens", path = "../tokens", features = ["std"] }
28+
orml-tokens = { path = "../tokens", features = ["std"] }
2929

3030
[features]
3131
default = [ "std" ]
@@ -41,6 +41,11 @@ std = [
4141
"sp-runtime/std",
4242
"sp-std/std",
4343
]
44+
runtime-benchmarks = [
45+
"frame-support/runtime-benchmarks",
46+
"frame-system/runtime-benchmarks",
47+
"orml-tokens/runtime-benchmarks",
48+
]
4449
try-runtime = [
4550
"frame-support/try-runtime",
4651
"frame-system/try-runtime",

currencies/src/mock.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ impl orml_tokens::Config for Runtime {
8585
type MaxReserves = ConstU32<100_000>;
8686
type ReserveIdentifier = ReserveIdentifier;
8787
type DustRemovalWhitelist = Nothing;
88+
#[cfg(feature = "runtime-benchmarks")]
89+
type BenchmarkHelper = ();
8890
}
8991

9092
pub const NATIVE_CURRENCY_ID: CurrencyId = 1;

payments/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ std = [
4141
'sp-runtime/std',
4242
'sp-std/std',
4343
]
44+
runtime-benchmarks = [
45+
"frame-support/runtime-benchmarks",
46+
"frame-system/runtime-benchmarks",
47+
"orml-tokens/runtime-benchmarks",
48+
]
4449
try-runtime = [
4550
"frame-support/try-runtime",
4651
"frame-system/try-runtime",

payments/src/mock.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ impl orml_tokens::Config for Test {
7474
type DustRemovalWhitelist = MockDustRemovalWhitelist;
7575
type MaxReserves = ConstU32<2>;
7676
type ReserveIdentifier = ReserveIdentifier;
77+
#[cfg(feature = "runtime-benchmarks")]
78+
type BenchmarkHelper = ();
7779
}
7880

7981
pub struct MockDisputeResolver;

xtokens/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ runtime-benchmarks = [
8080
"sp-runtime/runtime-benchmarks",
8181
"xcm-executor/runtime-benchmarks",
8282
"xcm/runtime-benchmarks",
83+
"orml-tokens/runtime-benchmarks",
8384
]
8485
try-runtime = [
8586
"frame-support/try-runtime",

xtokens/src/mock/para.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ impl orml_tokens::Config for Runtime {
7777
type MaxReserves = ConstU32<50>;
7878
type ReserveIdentifier = [u8; 8];
7979
type DustRemovalWhitelist = Everything;
80+
#[cfg(feature = "runtime-benchmarks")]
81+
type BenchmarkHelper = ();
8082
}
8183

8284
parameter_types! {

xtokens/src/mock/para_relative_view.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ impl orml_tokens::Config for Runtime {
7474
type MaxReserves = ConstU32<50>;
7575
type ReserveIdentifier = [u8; 8];
7676
type DustRemovalWhitelist = Everything;
77+
#[cfg(feature = "runtime-benchmarks")]
78+
type BenchmarkHelper = ();
7779
}
7880

7981
parameter_types! {

xtokens/src/mock/para_teleport.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ impl orml_tokens::Config for Runtime {
7474
type MaxReserves = ConstU32<50>;
7575
type ReserveIdentifier = [u8; 8];
7676
type DustRemovalWhitelist = Everything;
77+
#[cfg(feature = "runtime-benchmarks")]
78+
type BenchmarkHelper = ();
7779
}
7880

7981
parameter_types! {

0 commit comments

Comments
 (0)