Skip to content

Commit

Permalink
max weight fix (open-web3-stack#891)
Browse files Browse the repository at this point in the history
# Conflicts:
#	Cargo.dev.toml
  • Loading branch information
wangjj9219 authored and tgmichel committed Mar 16, 2023
1 parent 0198348 commit b2e8e33
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/purestake//cumulus", rev = "dfe
parachain-info = { git = "https://github.com/purestake//cumulus", rev = "dfe9427502384e61be9e37714ff4e3a33e23ff67" }

[patch.'https://github.com/purestake/polkadot']
pallet-xcm = { git = "https://github.com/purestake//polkadot", rev = "56904b7c28ab0d73b0d68357461a23919cf8690b" }
polkadot-core-primitives = { git = "https://github.com/purestake//polkadot", rev = "56904b7c28ab0d73b0d68357461a23919cf8690b" }
polkadot-runtime-parachains = { git = "https://github.com/purestake//polkadot", rev = "56904b7c28ab0d73b0d68357461a23919cf8690b" }
polkadot-parachain = { git = "https://github.com/purestake//polkadot", rev = "56904b7c28ab0d73b0d68357461a23919cf8690b" }
polkadot-primitives = { git = "https://github.com/purestake//polkadot", rev = "56904b7c28ab0d73b0d68357461a23919cf8690b" }
xcm = { git = "https://github.com/purestake//polkadot", rev = "56904b7c28ab0d73b0d68357461a23919cf8690b" }
xcm-executor = { git = "https://github.com/purestake//polkadot", rev = "56904b7c28ab0d73b0d68357461a23919cf8690b" }
xcm-builder = { git = "https://github.com/purestake//polkadot", rev = "56904b7c28ab0d73b0d68357461a23919cf8690b" }
xcm-simulator = { git = "https://github.com/purestake//polkadot", rev = "56904b7c28ab0d73b0d68357461a23919cf8690b" }
pallet-xcm = { git = "https://github.com/purestake//polkadot", rev = "89dcd36b8a5f072700d8036dd5606f99ad787162" }
polkadot-core-primitives = { git = "https://github.com/purestake//polkadot", rev = "89dcd36b8a5f072700d8036dd5606f99ad787162" }
polkadot-runtime-parachains = { git = "https://github.com/purestake//polkadot", rev = "89dcd36b8a5f072700d8036dd5606f99ad787162" }
polkadot-parachain = { git = "https://github.com/purestake//polkadot", rev = "89dcd36b8a5f072700d8036dd5606f99ad787162" }
polkadot-primitives = { git = "https://github.com/purestake//polkadot", rev = "89dcd36b8a5f072700d8036dd5606f99ad787162" }
xcm = { git = "https://github.com/purestake//polkadot", rev = "89dcd36b8a5f072700d8036dd5606f99ad787162" }
xcm-executor = { git = "https://github.com/purestake//polkadot", rev = "89dcd36b8a5f072700d8036dd5606f99ad787162" }
xcm-builder = { git = "https://github.com/purestake//polkadot", rev = "89dcd36b8a5f072700d8036dd5606f99ad787162" }
xcm-simulator = { git = "https://github.com/purestake//polkadot", rev = "89dcd36b8a5f072700d8036dd5606f99ad787162" }
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 b2e8e33

Please sign in to comment.