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

Fix Weight::is_zero #12396

Merged
merged 2 commits into from
Oct 3, 2022
Merged

Fix Weight::is_zero #12396

merged 2 commits into from
Oct 3, 2022

Conversation

ggwpez
Copy link
Member

@ggwpez ggwpez commented Oct 1, 2022

proof_size is missing here. Lets opt for a future proof implementation.

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
@ggwpez ggwpez added 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 labels Oct 1, 2022
@ggwpez ggwpez requested a review from KiChjang October 1, 2022 18:52
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
@ggwpez ggwpez added A8-mergeoncegreen and removed A0-please_review Pull request needs code review. labels Oct 3, 2022
@ggwpez
Copy link
Member Author

ggwpez commented Oct 3, 2022

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 2579550 into master Oct 3, 2022
@paritytech-processbot paritytech-processbot bot deleted the oty-weight-zero branch October 3, 2022 13:18
ordian added a commit that referenced this pull request Oct 5, 2022
* master: (42 commits)
  Adapt `pallet-contracts` to WeightV2 (#12421)
  Improved election pallet testing (#12327)
  Bump prost to 0.11+ (#12419)
  Use saturating add for alliance::disband witness data (#12418)
  [Fix] Rename VoterBagsList -> VoterList to match pdot (#12416)
  client/beefy: small code improvements (#12414)
  BEEFY: Simplify hashing for pallet-beefy-mmr (#12393)
  Add @koute to `docs/CODEOWNERS` and update stale paths (#12408)
  docs/CODEOWNERS: add @acatangiu as MMR owner (#12406)
  Remove unnecessary Clone trait bounds on CountedStorageMap (#12402)
  Fix `Weight::is_zero` (#12396)
  Beefy on-demand justifications as a custom RequestResponse protocol (#12124)
  Remove contracts RPCs (#12358)
  pallet-mmr: generate historical proofs (#12324)
  unsafe_pruning flag removed (#12385)
  Carry over where clauses defined in Config to Call and Hook (#12388)
  Properly set the max proof size weight on defaults and tests (#12383)
  BEEFY: impl TypeInfo for SignedCommitment (#12382)
  bounding staking: `BoundedElectionProvider` trait (#12362)
  New Pallet: Root offences (#11943)
  ...
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* Fix Weight::is_zero

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Add test

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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
Development

Successfully merging this pull request may close these issues.

5 participants