Skip to content

Commit

Permalink
add 0x prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Dec 25, 2024
1 parent 36402bf commit 9bc8fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/consensus/debug-client/src/providers/etherscan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl EtherscanBlockProvider {
/// are supported.
pub async fn load_block(&self, block_number_or_tag: BlockNumberOrTag) -> eyre::Result<Block> {
let tag = match block_number_or_tag {
BlockNumberOrTag::Number(num) => format!("{num:x}"),
BlockNumberOrTag::Number(num) => format!("{num:#02x}"),
tag => tag.to_string(),
};
let block: EtherscanBlockResponse = self
Expand Down

0 comments on commit 9bc8fff

Please sign in to comment.