From 98305a9ef6ef9cf529bddb96a9ff321277bfc78f Mon Sep 17 00:00:00 2001 From: David Estes Date: Mon, 16 Sep 2024 10:37:22 -0500 Subject: [PATCH] chore: improve doc comments from review feedback --- validation/src/blockchain/eth_rpc.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/validation/src/blockchain/eth_rpc.rs b/validation/src/blockchain/eth_rpc.rs index edb281667..e4fc38731 100644 --- a/validation/src/blockchain/eth_rpc.rs +++ b/validation/src/blockchain/eth_rpc.rs @@ -88,9 +88,9 @@ struct EthTransaction { #[serde(rename_all = "camelCase")] struct EthBlock { hash: String, - /// hexadecimal block number + /// 0x prefixed hexadecimal block number number: String, - /// hexademical representing unix epoch time + /// 0x prefixed hexademical representing unix epoch time timestamp: String, } @@ -274,7 +274,7 @@ impl EthRpc for HttpEthRpc { } } -/// Get an i64 integer from a hex string +/// Get an i64 integer from a 0x prefixed hex string fn i64_from_hex(val: &str) -> Result { val.strip_prefix("0x") .map(|v| i64::from_str_radix(v, 16))