@@ -250,6 +250,7 @@ mod tests {
250
250
use super :: * ;
251
251
use crate :: AssetRuntimeConfig ;
252
252
use extrinsic_params:: { GenericAdditionalParams , GenericExtrinsicParams , PlainTip } ;
253
+ use frame_metadata_hash_extension:: CheckMetadataHash ;
253
254
use frame_system:: {
254
255
CheckEra , CheckGenesis , CheckNonZeroSender , CheckNonce , CheckSpecVersion , CheckTxVersion ,
255
256
CheckWeight ,
@@ -325,8 +326,6 @@ mod tests {
325
326
assert_eq ! ( call, call1) ;
326
327
}
327
328
328
- // Currently does not with available version of substrate extrinsic
329
- #[ cfg( not( feature = "disable-metadata-hash-check" ) ) ]
330
329
#[ test]
331
330
fn xt_hash_matches_substrate_impl ( ) {
332
331
// Define extrinsic params.
@@ -353,6 +352,7 @@ mod tests {
353
352
CheckNonce :: < Runtime > :: from ( nonce) ,
354
353
CheckWeight :: < Runtime > :: new ( ) ,
355
354
ChargeTransactionPayment :: < Runtime > :: from ( fee) ,
355
+ CheckMetadataHash :: < Runtime > :: new ( false ) ,
356
356
) ;
357
357
358
358
let substrate_extrinsic = UncheckedExtrinsic :: new_signed (
@@ -386,13 +386,11 @@ mod tests {
386
386
)
387
387
}
388
388
389
- // Currently does not work with stored bytes. Need to create a new version
390
- #[ cfg( not( feature = "disable-metadata-hash-check" ) ) ]
391
389
#[ test]
392
390
fn xt_hash_matches_substrate_impl_large_xt ( ) {
393
391
// Define xt parameters,
394
392
let alice = MultiAddress :: Id ( AccountKeyring :: Alice . to_account_id ( ) ) ;
395
- let code: Vec < u8 > = include_bytes ! ( "test-runtime.compact .wasm" ) . to_vec ( ) ;
393
+ let code: Vec < u8 > = include_bytes ! ( "solochain_template_runtime .wasm" ) . to_vec ( ) ;
396
394
let call = RuntimeCall :: System ( SystemCall :: set_code { code } ) ;
397
395
398
396
let msg = & b"test-message" [ ..] ;
@@ -412,6 +410,7 @@ mod tests {
412
410
CheckNonce :: < Runtime > :: from ( nonce) ,
413
411
CheckWeight :: < Runtime > :: new ( ) ,
414
412
ChargeTransactionPayment :: < Runtime > :: from ( fee) ,
413
+ CheckMetadataHash :: < Runtime > :: new ( false ) ,
415
414
) ;
416
415
let substrate_extrinsic = UncheckedExtrinsic :: new_signed (
417
416
call. clone ( ) ,
0 commit comments