Fix CI + one integration test for bridge-hub-kusama#397
Fix CI + one integration test for bridge-hub-kusama#397fellowship-merge-bot[bot] merged 9 commits intopolkadot-fellows:mainfrom
bridge-hub-kusama#397Conversation
Co-authored-by: Javier Bullrich <javier@bullrich.dev>
Co-authored-by: Javier Bullrich <javier@bullrich.dev>
…ridgeHub, simply just do only dry-run
…er migration to xcm:v5)
bridge-hub-kusama
| dbg!(&receiver_ksms_before); | ||
|
|
||
| // Sender's balance is reduced | ||
| assert_eq!(sender_ksms_after, sender_ksms_before - amount - delivery_fees); |
There was a problem hiding this comment.
Is this no longer the case or are you just making the test less brittle?
There was a problem hiding this comment.
It was not correct, at least, it missed the subtraction of execution_fees. I tried to add them as well, but let result = Runtime::dry_run_call(origin, call).unwrap(); did not return actual_weight, so it is not possible to calculate WeightToFee. Additionally, there was some calculation of intermediate_delivery_fees_amount from BHK to BHP, which is not relevant. So yes, keep it simple. At least I added asserts to check that the dry-run succeeded and the message is ready to be relayed over bridge to the BHP.
There was a problem hiding this comment.
This was added by @franciscoaguirre, fee estimation doesn't yet work with BridgeHub exporters: #380 (comment)
The check will be added back when that is fixed as well.
|
/merge |
|
Enabled Available commands
For more information see the documentation |
Failed to update PR ❌There was an error while trying to keep this PR You may have conflicts More info in the logs 📋 |
Closes: #396
This PR:
bridge-hub-kusama-integration-teststhat was not caught due to a previous CI bug.Versioned*::V4toVersioned*::fromto use the latest version (for easier migration toxcm:v5).TODO