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

Require fn token in decl_storage get #5717

Merged
merged 2 commits into from
Apr 21, 2020
Merged

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Apr 21, 2020

The fn token was already for quite some time as an optional parameter.
It was introduced to make these functions better findable. This pr makes
the fn token required.

The `fn` token was already for quite some time as an optional parameter.
It was introduced to make these functions better findable. This pr makes
the `fn` token required.
@bkchr bkchr added A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes labels Apr 21, 2020
@bkchr bkchr requested a review from gui1117 April 21, 2020 11:25
@bkchr bkchr requested a review from kianenigma as a code owner April 21, 2020 11:25
@@ -271,7 +271,7 @@ mod tests {
map hasher(identity) T::BlockNumber => T::BlockNumber;
pub GenericData2 get(fn generic_data2):
map hasher(blake2_128_concat) T::BlockNumber => Option<T::BlockNumber>;
pub GetterNoFnKeyword get(no_fn): Option<u32>;
pub GetterNoFnKeyword get(fn no_fn): Option<u32>;
Copy link
Contributor

Choose a reason for hiding this comment

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

GetterNoFnKeyword should just remove this?

@gnunicorn gnunicorn added A7-needspolkadotpr and removed B0-silent Changes should not be mentioned in any release notes labels Apr 21, 2020
@bkchr bkchr merged commit fa7bd73 into master Apr 21, 2020
@bkchr bkchr deleted the bkchr-force-fn-in-decl-storage branch April 21, 2020 14:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants