Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify that channel exists when validating outbound message #1067

Merged
merged 7 commits into from
Dec 19, 2023

Conversation

vgeddes
Copy link
Collaborator

@vgeddes vgeddes commented Dec 18, 2023

Polkadot-sdk: Snowfork/polkadot-sdk#73
This is a simpler version of #1047

Fixes: SNO-771

Copy link

codecov bot commented Dec 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e5ac19e) 80.55% compared to head (cca88bb) 80.57%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1067      +/-   ##
==========================================
+ Coverage   80.55%   80.57%   +0.02%     
==========================================
  Files          55       55              
  Lines        2273     2276       +3     
  Branches       71       71              
==========================================
+ Hits         1831     1834       +3     
  Misses        425      425              
  Partials       17       17              
Flag Coverage Δ
rust 80.57% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@yrong yrong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

});
}

pub fn send_transfer_token_message_insufficient_fund<Runtime, XcmConfig>(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we remove this test?

Copy link
Contributor

@alistair-singh alistair-singh Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a test utility that's called from multiple tests, not a test itself. This was duplicated for each test case and I refactored it into a single test utility that allows you to specify fees and the error you expect.

@alistair-singh alistair-singh merged commit c601294 into main Dec 19, 2023
7 checks passed
@alistair-singh alistair-singh deleted the check-channel-in-outbound-queue branch December 19, 2023 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants