mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 16:51:02 +00:00
Companion for Weight v1.5 (#5943)
* fix to latest substrate pr
* update weights
* cargo build -p polkadot-runtime-parachains
* fix xcm-builder
* fix import
* fix a bunch
* fix a bunch of weight stuff
* kusama compile
* unused
* builds
* maybe fix
* cargo test -p polkadot-runtime-parachains
* xcm simulator example
* fix tests
* xcm sim fuzz
* fix runtime tests
* remove unused
* fix integration tests
* scalar div
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -243,10 +243,10 @@ macro_rules! decl_test_network {
|
||||
let encoded = $crate::encode_xcm(message, $crate::MessageKind::Ump);
|
||||
let r = <$relay_chain>::process_upward_message(
|
||||
para_id, &encoded[..],
|
||||
$crate::Weight::max_value(),
|
||||
$crate::Weight::MAX,
|
||||
);
|
||||
if let Err((id, required)) = r {
|
||||
return Err($crate::XcmError::WeightLimitReached(required));
|
||||
return Err($crate::XcmError::WeightLimitReached(required.ref_time()));
|
||||
}
|
||||
},
|
||||
$(
|
||||
@@ -255,7 +255,7 @@ macro_rules! decl_test_network {
|
||||
let messages = vec![(para_id, 1, &encoded[..])];
|
||||
let _weight = <$parachain>::handle_xcmp_messages(
|
||||
messages.into_iter(),
|
||||
$crate::Weight::max_value(),
|
||||
$crate::Weight::MAX,
|
||||
);
|
||||
},
|
||||
)*
|
||||
@@ -281,7 +281,7 @@ macro_rules! decl_test_network {
|
||||
// NOTE: RelayChainBlockNumber is hard-coded to 1
|
||||
let messages = vec![(1, encoded)];
|
||||
let _weight = <$parachain>::handle_dmp_messages(
|
||||
messages.into_iter(), $crate::Weight::max_value(),
|
||||
messages.into_iter(), $crate::Weight::MAX,
|
||||
);
|
||||
},
|
||||
)*
|
||||
|
||||
Reference in New Issue
Block a user