From 19575d0416c439ac6d2fafb96724aeb87e18f472 Mon Sep 17 00:00:00 2001 From: wangjj9219 <183318287@qq.com> Date: Tue, 7 Mar 2023 23:49:27 +0800 Subject: [PATCH] max weight fix --- Cargo.dev.toml | 18 +++++++++--------- xtokens/src/tests.rs | 12 +++--------- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/Cargo.dev.toml b/Cargo.dev.toml index fd44629fe..0a9cb3d73 100644 --- a/Cargo.dev.toml +++ b/Cargo.dev.toml @@ -96,12 +96,12 @@ cumulus-pallet-xcm = { git = "https://github.com/paritytech//cumulus", rev = "1b parachain-info = { git = "https://github.com/paritytech//cumulus", rev = "1b2003d48f753be96471c5f96c4a2307592db49f" } [patch.'https://github.com/paritytech/polkadot'] -pallet-xcm = { git = "https://github.com/paritytech//polkadot", rev = "72309a2b2e68413305a56dce1097041309bd29c6" } -polkadot-core-primitives = { git = "https://github.com/paritytech//polkadot", rev = "72309a2b2e68413305a56dce1097041309bd29c6" } -polkadot-runtime-parachains = { git = "https://github.com/paritytech//polkadot", rev = "72309a2b2e68413305a56dce1097041309bd29c6" } -polkadot-parachain = { git = "https://github.com/paritytech//polkadot", rev = "72309a2b2e68413305a56dce1097041309bd29c6" } -polkadot-primitives = { git = "https://github.com/paritytech//polkadot", rev = "72309a2b2e68413305a56dce1097041309bd29c6" } -xcm = { git = "https://github.com/paritytech//polkadot", rev = "72309a2b2e68413305a56dce1097041309bd29c6" } -xcm-executor = { git = "https://github.com/paritytech//polkadot", rev = "72309a2b2e68413305a56dce1097041309bd29c6" } -xcm-builder = { git = "https://github.com/paritytech//polkadot", rev = "72309a2b2e68413305a56dce1097041309bd29c6" } -xcm-simulator = { git = "https://github.com/paritytech//polkadot", rev = "72309a2b2e68413305a56dce1097041309bd29c6" } +pallet-xcm = { git = "https://github.com/paritytech//polkadot", rev = "8deef133d3ca1bdea8c6267c4a66ecabb903a18b" } +polkadot-core-primitives = { git = "https://github.com/paritytech//polkadot", rev = "8deef133d3ca1bdea8c6267c4a66ecabb903a18b" } +polkadot-runtime-parachains = { git = "https://github.com/paritytech//polkadot", rev = "8deef133d3ca1bdea8c6267c4a66ecabb903a18b" } +polkadot-parachain = { git = "https://github.com/paritytech//polkadot", rev = "8deef133d3ca1bdea8c6267c4a66ecabb903a18b" } +polkadot-primitives = { git = "https://github.com/paritytech//polkadot", rev = "8deef133d3ca1bdea8c6267c4a66ecabb903a18b" } +xcm = { git = "https://github.com/paritytech//polkadot", rev = "8deef133d3ca1bdea8c6267c4a66ecabb903a18b" } +xcm-executor = { git = "https://github.com/paritytech//polkadot", rev = "8deef133d3ca1bdea8c6267c4a66ecabb903a18b" } +xcm-builder = { git = "https://github.com/paritytech//polkadot", rev = "8deef133d3ca1bdea8c6267c4a66ecabb903a18b" } +xcm-simulator = { git = "https://github.com/paritytech//polkadot", rev = "8deef133d3ca1bdea8c6267c4a66ecabb903a18b" } diff --git a/xtokens/src/tests.rs b/xtokens/src/tests.rs index 29130aec2..29983f853 100644 --- a/xtokens/src/tests.rs +++ b/xtokens/src/tests.rs @@ -663,9 +663,7 @@ fn sending_sibling_asset_to_reserve_sibling_with_relay_fee_works() { }); let fee_amount: u128 = 200; - // TODO: set the weight limit to 40 until this issue is addressed: - // https://github.com/paritytech/polkadot/issues/6770 - let weight: u128 = 40; + let weight: u128 = 50; let dest_weight: u128 = 40; ParaA::execute_with(|| { @@ -725,9 +723,7 @@ fn sending_sibling_asset_to_reserve_sibling_with_relay_fee_works_with_relative_s }); let fee_amount: u128 = 200; - // TODO: set the weight limit to 40 until this issue is addressed: - // https://github.com/paritytech/polkadot/issues/6770 - let weight: u128 = 40; + let weight: u128 = 50; let dest_weight: u128 = 40; ParaD::execute_with(|| { @@ -790,9 +786,7 @@ fn sending_sibling_asset_to_reserve_sibling_with_relay_fee_not_enough() { }); let fee_amount: u128 = 159; - // TODO: set the weight limit to 40 until this issue is addressed: - // https://github.com/paritytech/polkadot/issues/6770 - let weight: u128 = 40; + let weight: u128 = 50; let dest_weight: u128 = 40; ParaA::execute_with(|| {