Skip to content

Commit

Permalink
fix(indexer): use same string format for request hash in ethereum & s…
Browse files Browse the repository at this point in the history
…tarknet
  • Loading branch information
ptisserand committed Apr 12, 2024
1 parent 11bf920 commit 5304cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/indexer/src/starknet_indexer/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ fn u256_to_hex(felts: &[FieldElement]) -> Result<String> {
return Err(anyhow!("At least two felts are required to read a u256"));
}

Ok(format!("{:#032x}{:032x}", felts[1], felts[0]))
Ok(format!("0x{:032x}{:032x}", felts[1], felts[0]))
}

///
Expand Down

0 comments on commit 5304cec

Please sign in to comment.