-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We may want to construct a `Footprint` by taking the `max_encoded_len` of a type, without having to construct the type. This impl allows easy access to that. --------- Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: command-bot <>
- Loading branch information
1 parent
6efa1ee
commit 90b5533
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
||
title: Add `from_mel` for `Footprint` | ||
|
||
doc: | ||
- audience: Runtime Dev | ||
description: | | ||
This introduces a new way to generate the `Footprint` type by calculating the max encoded | ||
length of some generic type. This allows you to generate a `Footprint` of a type without | ||
actually constructing that type. | ||
|
||
crates: | ||
- name: frame-support | ||
bump: patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters