File tree 8 files changed +14
-11
lines changed
8 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ pallet-xcm-transactor = { workspace = true }
145
145
staging-parachain-info = { workspace = true }
146
146
147
147
[build-dependencies ]
148
- substrate-wasm-builder = { workspace = true }
148
+ substrate-wasm-builder = { workspace = true , optional = true }
149
149
150
150
[features ]
151
151
default = [" std" ]
@@ -157,6 +157,7 @@ std = [
157
157
" serde/std" ,
158
158
" log/std" ,
159
159
# Substrate related
160
+ " substrate-wasm-builder" ,
160
161
" sp-api/std" ,
161
162
" sp-arithmetic/std" ,
162
163
" sp-runtime/std" ,
@@ -459,7 +460,7 @@ try-runtime = [
459
460
# generate the metadata hash and then a second time with the
460
461
# `RUNTIME_METADATA_HASH` environment variable set for the `CheckMetadataHash`
461
462
# extension.
462
- metadata-hash = [" substrate-wasm-builder/metadata-hash" ]
463
+ metadata-hash = [" substrate-wasm-builder? /metadata-hash" ]
463
464
464
465
# A feature that should be enabled when the runtime should be build for on-chain
465
466
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
Original file line number Diff line number Diff line change @@ -2053,8 +2053,8 @@ pub type SignedExtra = (
2053
2053
frame_system:: CheckNonce < Runtime > ,
2054
2054
frame_system:: CheckWeight < Runtime > ,
2055
2055
pallet_transaction_payment:: ChargeTransactionPayment < Runtime > ,
2056
- frame_metadata_hash_extension:: CheckMetadataHash < Runtime > ,
2057
2056
runtime_common:: transfer_filter:: PreBalanceTransferExtension < Runtime > ,
2057
+ frame_metadata_hash_extension:: CheckMetadataHash < Runtime > ,
2058
2058
) ;
2059
2059
2060
2060
/// Unchecked extrinsic type as expected by this runtime.
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ pallet-xcm-transactor = { workspace = true }
140
140
staging-parachain-info = { workspace = true }
141
141
142
142
[build-dependencies ]
143
- substrate-wasm-builder = { workspace = true }
143
+ substrate-wasm-builder = { workspace = true , optional = true }
144
144
145
145
[features ]
146
146
default = [" std" ]
@@ -166,6 +166,7 @@ std = [
166
166
" sp-transaction-pool/std" ,
167
167
" sp-version/std" ,
168
168
" sp-staking/std" ,
169
+ " substrate-wasm-builder" ,
169
170
" frame-support/std" ,
170
171
" frame-system/std" ,
171
172
" frame-system-rpc-runtime-api/std" ,
@@ -441,7 +442,7 @@ try-runtime = [
441
442
# generate the metadata hash and then a second time with the
442
443
# `RUNTIME_METADATA_HASH` environment variable set for the `CheckMetadataHash`
443
444
# extension.
444
- metadata-hash = [" substrate-wasm-builder/metadata-hash" ]
445
+ metadata-hash = [" substrate-wasm-builder? /metadata-hash" ]
445
446
446
447
# A feature that should be enabled when the runtime should be build for on-chain
447
448
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
Original file line number Diff line number Diff line change @@ -2064,8 +2064,8 @@ pub type SignedExtra = (
2064
2064
frame_system:: CheckNonce < Runtime > ,
2065
2065
frame_system:: CheckWeight < Runtime > ,
2066
2066
pallet_transaction_payment:: ChargeTransactionPayment < Runtime > ,
2067
- frame_metadata_hash_extension:: CheckMetadataHash < Runtime > ,
2068
2067
runtime_common:: transfer_filter:: PreBalanceTransferExtension < Runtime > ,
2068
+ frame_metadata_hash_extension:: CheckMetadataHash < Runtime > ,
2069
2069
) ;
2070
2070
2071
2071
/// Unchecked extrinsic type as expected by this runtime.
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ pallet-xcm-transactor = { workspace = true }
146
146
staging-parachain-info = { workspace = true }
147
147
148
148
[build-dependencies ]
149
- substrate-wasm-builder = { workspace = true }
149
+ substrate-wasm-builder = { workspace = true , optional = true }
150
150
151
151
[features ]
152
152
default = [" std" ]
@@ -173,6 +173,7 @@ std = [
173
173
" sp-transaction-pool/std" ,
174
174
" sp-version/std" ,
175
175
" sp-staking/std" ,
176
+ " substrate-wasm-builder" ,
176
177
" frame-support/std" ,
177
178
" frame-system/std" ,
178
179
" frame-system-rpc-runtime-api/std" ,
@@ -463,7 +464,7 @@ try-runtime = [
463
464
# generate the metadata hash and then a second time with the
464
465
# `RUNTIME_METADATA_HASH` environment variable set for the `CheckMetadataHash`
465
466
# extension.
466
- metadata-hash = [" substrate-wasm-builder/metadata-hash" ]
467
+ metadata-hash = [" substrate-wasm-builder? /metadata-hash" ]
467
468
468
469
# A feature that should be enabled when the runtime should be build for on-chain
469
470
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
Original file line number Diff line number Diff line change @@ -2154,8 +2154,8 @@ pub type SignedExtra = (
2154
2154
frame_system:: CheckNonce < Runtime > ,
2155
2155
frame_system:: CheckWeight < Runtime > ,
2156
2156
pallet_transaction_payment:: ChargeTransactionPayment < Runtime > ,
2157
- frame_metadata_hash_extension:: CheckMetadataHash < Runtime > ,
2158
2157
runtime_common:: transfer_filter:: PreBalanceTransferExtension < Runtime > ,
2158
+ frame_metadata_hash_extension:: CheckMetadataHash < Runtime > ,
2159
2159
) ;
2160
2160
/// Unchecked extrinsic type as expected by this runtime.
2161
2161
pub type UncheckedExtrinsic =
Original file line number Diff line number Diff line change @@ -296,8 +296,8 @@ pub trait Runtime:
296
296
frame_system:: CheckNonce < Self > ,
297
297
frame_system:: CheckWeight < Self > ,
298
298
pallet_transaction_payment:: ChargeTransactionPayment < Self > ,
299
- frame_metadata_hash_extension:: CheckMetadataHash < Self > ,
300
299
runtime_common:: transfer_filter:: PreBalanceTransferExtension < Self > ,
300
+ frame_metadata_hash_extension:: CheckMetadataHash < Self > ,
301
301
) ,
302
302
> ,
303
303
> ;
Original file line number Diff line number Diff line change @@ -255,8 +255,8 @@ pub mod utils {
255
255
frame_system:: CheckNonce :: < T > :: from ( nonce) ,
256
256
frame_system:: CheckWeight :: < T > :: new ( ) ,
257
257
pallet_transaction_payment:: ChargeTransactionPayment :: < T > :: from ( 0 ) ,
258
- frame_metadata_hash_extension:: CheckMetadataHash :: < T > :: new ( false ) ,
259
258
runtime_common:: transfer_filter:: PreBalanceTransferExtension :: < T > :: new ( ) ,
259
+ frame_metadata_hash_extension:: CheckMetadataHash :: < T > :: new ( false ) ,
260
260
) ;
261
261
262
262
let raw_payload = SignedPayload :: new ( runtime_call. clone ( ) , signed_extra. clone ( ) ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments