xcm: avoid subtracting delivery fees twice#7201
Conversation
|
/cmd prdoc --audience runtime_dev --bump patch |
|
Sorry, only members of the organization paritytech members can run commands. |
|
@carlosala could we maybe get some test for this? :D (Not sure how the test infrastructure looks right now) |
|
I'm not really sure either, what do you think @franciscoaguirre? |
acatangiu
left a comment
There was a problem hiding this comment.
AFAIK there is no test verifying the right delivery fee being charged - aka there are tests verifying fees are charged but not asserting on amounts.
But there are already many tests verifying that DepositReserveAsset is working under various conditions, so any breakage would be caught. CI should be green for this PR.
|
/cmd fmt |
|
Command "fmt" has started 🚀 See logs here |
|
Command "fmt" has failed ❌! See logs here |
|
/cmd fmt |
|
Command "fmt" has started 🚀 See logs here |
|
Command "fmt" has failed ❌! See logs here |
|
bot fmt |
|
@franciscoaguirre https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/8058462 was started for your command Comment |
2f114d3
|
@franciscoaguirre Command |
acatangiu
left a comment
There was a problem hiding this comment.
The following 7 benchmarks failed:
- pallet_xcm::force_subscribe_version_notify
- pallet_xcm::force_unsubscribe_version_notify
- pallet_xcm::send
- pallet_xcm::transfer_assets
- pallet_xcm_benchmarks::fungible::deposit_asset
- pallet_xcm_benchmarks::fungible::deposit_reserve_asset
- pallet_xcm_benchmarks::fungible::initiate_teleport
Please verify that these tests are passing for you locally (cargo test -p pallet-xcm --features=runtime-benchmarks)
Also please verify XCM emulated tests are passing locally:
cargo test -r -p asset-hub-westend-integration-tests -p bridge-hub-westend-integration-tests
|
Your editor seems to be reformatting unrelated files. Please re-run fmt (using the bot if you want) and fix your editor. |
|
The unrelated files were changes by the bot, after |
This reverts commit 2f114d3.
|
Okay not sure what is wrong with the bot. Maybe it is on an old version. We should not use it anymore I guess in favor of |
|
XCM emulated tests are passing as expected to me locally 👍🏻
They are not compiling due to a compilation error in the staking pallet. I have the same compilation error on |
|
This pull request has been mentioned on Polkadot Forum. There might be relevant details there: https://forum.polkadot.network/t/polkadot-api-2025-q1-update/11906/1 |
At the moment, the delivery fees are being subtracted twice if the
jit_withdrawmode is enabled, resulting in assets being trapped. This is an example of it.This does not happen in 2412 anymore after #4834.