Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Feb 26, 2025
1 parent c56da9a commit c362bcb
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2839,7 +2839,6 @@ dependencies = [
name = "ita-parentchain-specs"
version = "0.1.0"
dependencies = [
"hex",
"hex-literal 0.4.1",
"itp-types",
"log 0.4.22",
Expand Down
2 changes: 0 additions & 2 deletions app-libs/parentchain-specs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ authors = ["Integritee AG <hello@integritee.network>"]
edition = "2021"

[dependencies]
hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
hex-literal = "0.4.1"
itp-types = { path = "../../core-primitives/types", default-features = false }
log = { version = "0.4", default-features = false }

[features]
default = ["std"]
std = [
"hex/std",
"log/std",
]
5 changes: 2 additions & 3 deletions app-libs/parentchain-specs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#![cfg_attr(all(not(target_env = "sgx"), not(feature = "std")), no_std)]
#![cfg_attr(target_env = "sgx", feature(rustc_private))]

use hex as hexxer;
use hex_literal::hex;
use itp_types::parentchain::{Balance, BlockNumber, Hash};
use log::warn;
Expand Down Expand Up @@ -65,8 +64,8 @@ impl MinimalChainSpec {
LOCAL_TEST_GENESIS_HASH_HEX | ASSET_HUB_LOCAL_TEST_GENESIS_HASH_HEX => 12,
_ => {
warn!(
"parentchain spec for genesis {} unknown. defaulting to 12 decimals",
hexxer::encode(genesis_hash)
"parentchain spec for genesis 0x{:#x} unknown. defaulting to 12 decimals",
genesis_hash
);
12
},
Expand Down
4 changes: 2 additions & 2 deletions core-primitives/stf-executor/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ where
let storage_hashes =
Stf::storage_hashes_to_update_on_block(&mut state, parentchain_id, &shard_id);
trace!(
"parentchain storage_hash to mirror: 0x{} at header 0x{}",
"parentchain storage_hash to mirror: 0x{} at header {}",
hex::encode(storage_hashes[0].clone()),
hex::encode(header.hash().encode())
header.hash()
);
let prefixed_state_diff_update = if let Ok(storage_values) = self
.ocall_api
Expand Down
1 change: 0 additions & 1 deletion enclave-runtime/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1711,7 +1711,6 @@ dependencies = [
name = "ita-parentchain-specs"
version = "0.1.0"
dependencies = [
"hex",
"hex-literal",
"itp-types",
"log",
Expand Down

0 comments on commit c362bcb

Please sign in to comment.