Storage root for Ext.

This commit is contained in:
Gav
2018-01-30 19:21:54 +01:00
parent 06817aed51
commit 426486617a
5 changed files with 25 additions and 9 deletions
+2 -2
View File
@@ -93,9 +93,9 @@ pub fn chain_id() -> u64 {
}
/// "Commit" all existing operations and get the resultant storage root.
pub fn commit() -> [u8; 32] {
pub fn storage_root() -> [u8; 32] {
ext::with(|ext|
ext.commit()
ext.storage_root()
).unwrap_or([0u8; 32])
}