mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 04:11:07 +00:00
Documentation
This commit is contained in:
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user