Skip to content

Commit

Permalink
chore: bump faster-hex to 0.8 (#1266)
Browse files Browse the repository at this point in the history
Co-authored-by: Eason <[email protected]>
  • Loading branch information
liya2017 and KaoImin authored Jul 11, 2023
1 parent 0655b3d commit bf7bea4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
25 changes: 17 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ derive_more = "0.99"
ethereum = { version = "0.14", features = ["with-codec", "with-serde"] }
ethereum-types = { version = "0.14", features = ["arbitrary", "codec", "rlp", "serialize", "std"] }
evm = { version = "0.37", features = ["with-serde"] }
faster-hex = "0.6"
faster-hex = "0.8"
lazy_static = "1.4"
ophelia = "0.3"
ophelia-secp256k1 = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion protocol/src/codec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub(crate) fn serialize_bytes<S>(val: &Bytes, s: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
{
s.serialize_str(&Hex::encode(val).as_string())
faster_hex::withpfx_lowercase::serialize(val, s)
}

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

0 comments on commit bf7bea4

Please sign in to comment.