Skip to content

Commit 0b66a1f

Browse files
committed
make runtimes compile with try-runtime
1 parent c770aca commit 0b66a1f

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sugondat/chain/pallets/length-fee-adjustment/Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ targets = ["x86_64-unknown-linux-gnu"]
1414
[dependencies]
1515
parity-scale-codec = { workspace = true, features = ["derive"] }
1616
scale-info = { workspace = true, features = ["derive"] }
17+
frame-benchmarking = { workspace = true }
1718
frame-support = { workspace = true }
1819
frame-system = { workspace = true }
1920
pallet-transaction-payment = { workspace = true }
2021
pallet-balances = { workspace = true }
22+
sp-io = { workspace = true, optional = true }
2123
sp-runtime = { workspace = true }
2224
sp-weights = { workspace = true }
2325
sp-arithmetic = { workspace = true }
@@ -43,3 +45,12 @@ std = [
4345
"cumulus-pallet-parachain-system/std",
4446
"polkadot-primitives/std",
4547
]
48+
49+
runtime-benchmarks = [
50+
"frame-benchmarking/runtime-benchmarks",
51+
"frame-support/runtime-benchmarks",
52+
"frame-system/runtime-benchmarks",
53+
"sp-runtime/runtime-benchmarks",
54+
"dep:sp-io"
55+
]
56+
try-runtime = [ "frame-support/try-runtime" ]

sugondat/chain/runtimes/sugondat-kusama/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ runtime-benchmarks = [
156156
"pallet-balances/runtime-benchmarks",
157157
"pallet-collator-selection/runtime-benchmarks",
158158
"pallet-sugondat-blobs/runtime-benchmarks",
159+
"pallet-sugondat-length-fee-adjustment/runtime-benchmarks",
159160
"pallet-sudo/runtime-benchmarks",
160161
"pallet-timestamp/runtime-benchmarks",
161162
"pallet-xcm/runtime-benchmarks",
@@ -182,6 +183,7 @@ try-runtime = [
182183
"pallet-collator-selection/try-runtime",
183184
"pallet-message-queue/try-runtime",
184185
"pallet-sugondat-blobs/try-runtime",
186+
"pallet-sugondat-length-fee-adjustment/try-runtime",
185187
"pallet-session/try-runtime",
186188
"pallet-sudo/try-runtime",
187189
"pallet-timestamp/try-runtime",

sugondat/chain/runtimes/test/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ try-runtime = [
174174
"pallet-collator-selection/try-runtime",
175175
"pallet-message-queue/try-runtime",
176176
"pallet-sugondat-blobs/try-runtime",
177+
"pallet-sugondat-length-fee-adjustment/try-runtime",
177178
"pallet-session/try-runtime",
178179
"pallet-sudo/try-runtime",
179180
"pallet-timestamp/try-runtime",

0 commit comments

Comments
 (0)