Documentation

This commit is contained in:
Gav
2018-01-11 18:23:06 +01:00
parent 2d1f1a8933
commit e11f701c09
2 changed files with 120 additions and 53 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ pub struct ExternalitiesHolder<'a> {
ext: &'a mut Externalities<Error=NoError>,
}
declare_generic_environment!(ext : ExternalitiesHolder);
declare_generic!(ext : ExternalitiesHolder);
pub fn storage(_key: &[u8]) -> Vec<u8> {
ext::with(|holder| holder.ext.storage(_key).ok().map(|s| s.to_vec()))