Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

[Backport] [Revert] Use XCM V3 for initiate_teleport weight calc #2102 (#2394) source #2403

Conversation

EgorPopelyaev
Copy link
Contributor

This PR backports #2394 from the runtimes release branch to the source release branch

* Revert "[Enhancement] Use XCM V3 for initiate_teleport weight calc (#2102)"

This reverts commit 8230ec4.

* updating weight format

* We expect to pay 1bn+ for a teleport at the current weights.

* The test isn't needed and hardcoded scale is hand to maintain.

* remove unused imports

---------

Co-authored-by: Giles Cope <[email protected]>
@EgorPopelyaev EgorPopelyaev added B0-silent Changes should not be mentioned in any release notes A0-please_review Pull request needs code review. A6-backport Pull request is already reviewed well in another branch. C1-low PR touches the given topic and has a low impact on builders. labels Mar 29, 2023
@@ -149,7 +138,10 @@ impl<Call> XcmWeightInfo<Call> for StatemineXcmWeight<Call> {
_dest: &MultiLocation,
_xcm: &Xcm<()>,
) -> Weight {
assets.weigh_multi_assets(XcmFungibleWeight::<Runtime>::initiate_teleport())
// Hardcoded till the XCM pallet is fixed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may be there is an issue?

@EgorPopelyaev
Copy link
Contributor Author

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@EgorPopelyaev EgorPopelyaev merged commit e05c8d7 into polkadot-v0.9.40 Mar 30, 2023
@EgorPopelyaev EgorPopelyaev deleted the ep-backport-revert-2102-xcm-v3-for-teleport-source branch March 30, 2023 06:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. A6-backport Pull request is already reviewed well in another branch. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants