mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 15:47:58 +00:00
The storage runtime interface should not enforce a hash type (#4231)
* The storage runtime interface should not enforce a hash type Currently the runtime interface enforces `H256` as hash type, but in the future people could use whatever they want as hash type. The hash type always needs to match between the runtime and the node, but that is already required. * Update primitives/externalities/src/lib.rs Co-Authored-By: thiolliere <gui.thiolliere@gmail.com>
This commit is contained in:
committed by
Gavin Wood
parent
39388b826b
commit
3e26fceda4
@@ -913,7 +913,7 @@ mod tests {
|
||||
None,
|
||||
).0.unwrap();
|
||||
|
||||
assert!(t.ext().storage_changes_root(GENESIS_HASH.into()).unwrap().is_some());
|
||||
assert!(t.ext().storage_changes_root(&GENESIS_HASH.encode()).unwrap().is_some());
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -929,7 +929,7 @@ mod tests {
|
||||
None,
|
||||
).0.unwrap();
|
||||
|
||||
assert!(t.ext().storage_changes_root(GENESIS_HASH.into()).unwrap().is_some());
|
||||
assert!(t.ext().storage_changes_root(&GENESIS_HASH.encode()).unwrap().is_some());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user