Skip to content

Commit

Permalink
max weight fix (#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjj9219 authored Mar 7, 2023
1 parent c58f03e commit 6df51b3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
18 changes: 9 additions & 9 deletions Cargo.dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
12 changes: 3 additions & 9 deletions xtokens/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(|| {
Expand Down Expand Up @@ -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(|| {
Expand Down Expand Up @@ -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(|| {
Expand Down

0 comments on commit 6df51b3

Please sign in to comment.