Explicitly declare decl_storage! getters as functions (#3870)

* parse decl_storage getters with fn keyword

* test for get in decl_storage

* update all decl_storage! getters

* bump version

* adjust missed doc line
This commit is contained in:
Robert Habermeier
2019-10-22 03:53:58 -04:00
committed by Bastian Köcher
parent 1111d79ac1
commit 5d5e71028e
36 changed files with 190 additions and 175 deletions
+3 -3
View File
@@ -221,14 +221,14 @@ decl_event!(
decl_storage! {
trait Store for Module<T: Trait> as ImOnline {
/// The block number when we should gossip.
GossipAt get(gossip_at): T::BlockNumber;
GossipAt get(fn gossip_at): T::BlockNumber;
/// The current set of keys that may issue a heartbeat.
Keys get(keys): Vec<T::AuthorityId>;
Keys get(fn keys): Vec<T::AuthorityId>;
/// For each session index we keep a mapping of `AuthorityId`
/// to `offchain::OpaqueNetworkState`.
ReceivedHeartbeats get(received_heartbeats): double_map SessionIndex,
ReceivedHeartbeats get(fn received_heartbeats): double_map SessionIndex,
blake2_256(AuthIndex) => Vec<u8>;
}
add_extra_genesis {