mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-11 21:27:06 +00:00
Rename Hashing Trait to Hash (#288)
This commit is contained in:
1 parent
9957d26967
commit
a876d656bd
4 files changed
+5
-5
No files matched your search
@@ -192,7 +192,7 @@ impl CandidateReceipt {
|
||||
/// Get the blake2_256 hash
|
||||
#[cfg(feature = "std")]
|
||||
pub fn hash(&self) -> Hash {
|
||||
use runtime_primitives::traits::{BlakeTwo256, Hashing};
|
||||
use runtime_primitives::traits::{BlakeTwo256, Hash};
|
||||
BlakeTwo256::hash_of(self)
|
||||
}
|
||||
}
|
||||
@@ -247,7 +247,7 @@ impl BlockData {
|
||||
/// Compute hash of block data.
|
||||
#[cfg(feature = "std")]
|
||||
pub fn hash(&self) -> Hash {
|
||||
use runtime_primitives::traits::{BlakeTwo256, Hashing};
|
||||
use runtime_primitives::traits::{BlakeTwo256, Hash};
|
||||
BlakeTwo256::hash(&self.0[..])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user