mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 20:21:03 +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:
@@ -425,12 +425,13 @@ impl<
|
||||
}
|
||||
|
||||
// do teleport
|
||||
<pallet_xcm::Pallet<Runtime>>::teleport_assets(
|
||||
<pallet_xcm::Pallet<Runtime>>::limited_teleport_assets(
|
||||
origin,
|
||||
Box::new(dest.into()),
|
||||
Box::new(beneficiary.into()),
|
||||
Box::new((AssetId(asset), amount).into()),
|
||||
0,
|
||||
Unlimited,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user