Implement try_mutate for storage value and storage double map (#5699)

* impl try_mutate for storage value and storage double map

* Docs + Reuse `try_mutate` in `mutate`
This commit is contained in:
Shawn Tabrizi authored and GitHub committed 2020-04-20 15:05:20 +02:00
1 parent 319a00fb1c
commit 7d9aa81bfc
8 files changed
+116 -33

No files matched your search

+4
View File
@@ -78,6 +78,10 @@ pub use self::storage::{
pub use self::dispatch::{Parameter, Callable, IsSubType};
pub use sp_runtime::{self, ConsensusEngineId, print, traits::Printable};
/// A type that cannot be instantiated.
#[derive(Debug)]
pub enum Never {}
/// Macro for easily creating a new implementation of the `Get` trait. Use similarly to
/// how you would declare a `const`:
///