From 5304cec300e2c42ef000f6dd1cd2e421ff1a7432 Mon Sep 17 00:00:00 2001 From: Patrice Tisserand Date: Fri, 12 Apr 2024 20:11:01 +0200 Subject: [PATCH] fix(indexer): use same string format for request hash in ethereum & starknet --- apps/indexer/src/starknet_indexer/events.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/indexer/src/starknet_indexer/events.rs b/apps/indexer/src/starknet_indexer/events.rs index 1614f7ed..cc4352e5 100644 --- a/apps/indexer/src/starknet_indexer/events.rs +++ b/apps/indexer/src/starknet_indexer/events.rs @@ -142,7 +142,7 @@ fn u256_to_hex(felts: &[FieldElement]) -> Result { 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])) } ///