mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-30 07:29:49 +00:00
Clarify when changes_root returns None (#5428)
This commit is contained in:
1 parent
49d8439f77
commit
fb3386a5f3
1 file changed
+2
-1
@@ -286,7 +286,8 @@ pub trait Storage {
|
||||
///
|
||||
/// The hashing algorithm is defined by the `Block`.
|
||||
///
|
||||
/// Returns an `Option` that holds the SCALE encoded hash.
|
||||
/// Returns an `Some(_)` which holds the SCALE encoded hash or `None` when
|
||||
/// changes trie is disabled.
|
||||
fn changes_root(&mut self, parent_hash: &[u8]) -> Option<Vec<u8>> {
|
||||
self.storage_changes_root(parent_hash)
|
||||
.expect("Invalid `parent_hash` given to `changes_root`.")
|
||||
|
||||
Reference in new issue
Block a user