mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-10-30 15:39:52 +00:00
remove unneeded utils (#125)
Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
1 parent
423a494621
commit
7c00bbb0fc
4 files changed
+4
-65
No files matched your search
@@ -8,6 +8,7 @@ use std::collections::HashSet;
|
||||
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
use sha3::Digest;
|
||||
|
||||
use crate::evmla::ethereal_ir::entry_link::EntryLink;
|
||||
use crate::evmla::ethereal_ir::EtherealIR;
|
||||
@@ -45,7 +46,7 @@ impl Assembly {
|
||||
/// Gets the contract `keccak256` hash.
|
||||
pub fn keccak256(&self) -> String {
|
||||
let json = serde_json::to_vec(self).expect("Always valid");
|
||||
revive_llvm_context::polkavm_utils::keccak256(json.as_slice())
|
||||
hex::encode(sha3::Keccak256::digest(json.as_slice()))
|
||||
}
|
||||
|
||||
/// Sets the full contract path.
|
||||
|
||||
Reference in new issue
Block a user