mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 06:21:02 +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:
+2
-1
@@ -458,12 +458,13 @@ fn send_weth_asset_from_asset_hub_to_ethereum() {
|
||||
AssetHubRococoReceiver::get(),
|
||||
);
|
||||
// Send the Weth back to Ethereum
|
||||
<AssetHubRococo as AssetHubRococoPallet>::PolkadotXcm::reserve_transfer_assets(
|
||||
<AssetHubRococo as AssetHubRococoPallet>::PolkadotXcm::limited_reserve_transfer_assets(
|
||||
RuntimeOrigin::signed(AssetHubRococoReceiver::get()),
|
||||
Box::new(destination),
|
||||
Box::new(beneficiary),
|
||||
Box::new(multi_assets),
|
||||
0,
|
||||
Unlimited,
|
||||
)
|
||||
.unwrap();
|
||||
let free_balance_after = <AssetHubRococo as AssetHubRococoPallet>::Balances::free_balance(
|
||||
|
||||
Reference in New Issue
Block a user