mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 09:57:56 +00:00
pallet-xcm: fix weights for all XTs and deprecate unlimited weight ones (#3927)
Fix "double-weights" for extrinsics, use only the ones benchmarked in the runtime. Deprecate extrinsics that don't specify WeightLimit, remove their usage across the repo. --------- Signed-off-by: Adrian Catangiu <adrian@parity.io> Co-authored-by: command-bot <>
This commit is contained in:
@@ -250,12 +250,13 @@ mod tests {
|
||||
let withdraw_amount = 123;
|
||||
|
||||
Relay::execute_with(|| {
|
||||
assert_ok!(RelayChainPalletXcm::reserve_transfer_assets(
|
||||
assert_ok!(RelayChainPalletXcm::limited_reserve_transfer_assets(
|
||||
relay_chain::RuntimeOrigin::signed(ALICE),
|
||||
Box::new(Parachain(1).into()),
|
||||
Box::new(AccountId32 { network: None, id: ALICE.into() }.into()),
|
||||
Box::new((Here, withdraw_amount).into()),
|
||||
0,
|
||||
Unlimited,
|
||||
));
|
||||
assert_eq!(
|
||||
relay_chain::Balances::free_balance(&child_account_id(1)),
|
||||
|
||||
Reference in New Issue
Block a user