Skip to content

Commit bf7bea4

Browse files
liya2017Eason
and
Eason
authored
chore: bump faster-hex to 0.8 (#1266)
Co-authored-by: Eason <[email protected]>
1 parent 0655b3d commit bf7bea4

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

Diff for: Cargo.lock

+17-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: protocol/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ derive_more = "0.99"
2020
ethereum = { version = "0.14", features = ["with-codec", "with-serde"] }
2121
ethereum-types = { version = "0.14", features = ["arbitrary", "codec", "rlp", "serialize", "std"] }
2222
evm = { version = "0.37", features = ["with-serde"] }
23-
faster-hex = "0.6"
23+
faster-hex = "0.8"
2424
lazy_static = "1.4"
2525
ophelia = "0.3"
2626
ophelia-secp256k1 = "0.3"

Diff for: protocol/src/codec/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pub(crate) fn serialize_bytes<S>(val: &Bytes, s: S) -> Result<S::Ok, S::Error>
9292
where
9393
S: Serializer,
9494
{
95-
s.serialize_str(&Hex::encode(val).as_string())
95+
faster_hex::withpfx_lowercase::serialize(val, s)
9696
}
9797

9898
pub(crate) fn serialize_uint<S, U>(val: &U, s: S) -> Result<S::Ok, S::Error>

0 commit comments

Comments
 (0)