Skip to content

Commit abdff6b

Browse files
committed
Add missing dependencies to CLI's TOML
1 parent 60b14a1 commit abdff6b

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

Cargo.lock

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,11 @@ sp-storage = { workspace = true }
3030
try-runtime-core = { workspace = true }
3131

3232
frame-support = { workspace = true }
33+
34+
[dev-dependencies]
35+
# Only needed in tests
36+
assert_cmd = { workspace = true }
37+
frame-remote-externalities = { workspace = true }
38+
regex = { workspace = true }
39+
substrate-cli-test-utils = { workspace = true, features = ["try-runtime"] }
40+
tempfile = { workspace = true }

core/src/common/empty_block/production.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use std::{ops::DerefMut, str::FromStr, sync::Arc};
22

3+
use array_bytes::Hexify;
34
use parity_scale_codec::{Decode, Encode};
45
use sc_cli::Result;
56
use sc_executor::{HostFunctions, WasmExecutor};
@@ -66,7 +67,7 @@ where
6667

6768
log::info!(
6869
"Produced a new block ({})",
69-
array_bytes::bytes2hex("0x", next_block.header().hash())
70+
next_block.header().hash().as_bytes().hexify_prefixed()
7071
);
7172

7273
let mut ext_guard = ext_mutex.lock().await;

0 commit comments

Comments
 (0)