Skip to content

Commit

Permalink
chore: improve doc comments from review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dav1do committed Sep 16, 2024
1 parent 53ab8e9 commit 98305a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions validation/src/blockchain/eth_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down Expand Up @@ -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<i64> {
val.strip_prefix("0x")
.map(|v| i64::from_str_radix(v, 16))
Expand Down

0 comments on commit 98305a9

Please sign in to comment.