Documentation

This commit is contained in:
Gav committed 2018-01-11 18:23:06 +01:00
1 parent 2d1f1a8933
commit e11f701c09
2 files changed
+120 -53

No files matched your search

+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()))