Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

[XCM - UnpaidRemoteExporter] Remove unreachable code #7088

Merged
merged 2 commits into from
Apr 17, 2023

Conversation

serban300
Copy link
Contributor

There is an ensure!(maybe_payment.is_none(), Unroutable); above, so this code shouldn't be reachable.

@serban300 serban300 self-assigned this Apr 17, 2023
@serban300 serban300 added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes labels Apr 17, 2023
@serban300 serban300 merged commit 476d3dd into paritytech:master Apr 17, 2023
Comment on lines +163 to 164
let (v, cost) = validate_send::<Router>(bridge, message)?;
Ok((v, cost))
Copy link
Contributor

Choose a reason for hiding this comment

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

I was about to comment that we can actually remove the Ok((v, cost)) and replace the 2 lines with just:

validate_send::<Router>(bridge, message)

Copy link
Contributor Author

@serban300 serban300 Apr 17, 2023

Choose a reason for hiding this comment

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

Oh right. Sorry, I missed it. I'll open another small PR for this.

@serban300 serban300 mentioned this pull request Apr 17, 2023
ordian added a commit that referenced this pull request Apr 26, 2023
* master: (30 commits)
  update rocksdb to 0.20.1 (#7113)
  Reduce base proof size weight component to zero (#7081)
  PVF: Move PVF workers into separate crate (#7101)
  Companion for #13923 (#7111)
  update safe call filter (#7080)
  PVF: Don't dispute on missing artifact (#7011)
  XCM: Properly set the pricing for the DMP router (#6843)
  pvf: Update docs for PVF artifacts (#6551)
  Bump syn from 2.0.14 to 2.0.15 (#7093)
  Companion for substrate#13771 (#6983)
  Added Dwellir Nigeria bootnodes. (#7097)
  Companion for Substrate #13889 (#7063)
  Switch to DNS name based bootnodes for Rococo (#7040)
  companion for substrate#13883 (#7059)
  [xcm] Added `UnpaidExecution` instruction to `UnpaidRemoteExporter` (#7091)
  Bump serde_json from 1.0.85 to 1.0.96 (#7072)
  Bump hex-literal from 0.3.4 to 0.4.1 (#7071)
  Small simplification (#7089)
  [XCM - UnpaidRemoteExporter] Remove unreachable code (#7088)
  sync versions with current release (#7083)
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants