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

Use Saturating Math in XCM #5845

Merged
merged 2 commits into from
Aug 1, 2022
Merged

Conversation

shawntabrizi
Copy link
Member

No description provided.

@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Aug 1, 2022
@shawntabrizi shawntabrizi added B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. labels Aug 1, 2022
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Copy link
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

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

I added some more saturating. Please have a look @shawntabrizi

Btw would it be possible to un-implement the + operator on the Weight type?
Or make it panic instead? Then we would see all these occurrences as compile errors.

@shawntabrizi
Copy link
Member Author

shawntabrizi commented Aug 1, 2022

@ggwpez open to the idea!

@shawntabrizi
Copy link
Member Author

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot paritytech-processbot bot merged commit a030fa0 into master Aug 1, 2022
@paritytech-processbot paritytech-processbot bot deleted the shawntabrizi-xcm-saturating branch August 1, 2022 10:55
ordian added a commit that referenced this pull request Aug 3, 2022
* master:
  Use Saturating Math in XCM (#5845)
  Remove already executed calls to nompools MigrateToV2 migration (#5836)
  companion for #11821: node/service: add BEEFY to block import (#5796)
  Remove Unused Trait Bound (#5838)
  Companion for substrate#11523 (#5702)
  Remove Useless Inherent Data Provider (#5750)
  update weights (#5767)
  bump transcation_version for rococo (#5760) (#5830)
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 C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants