Skip to content

Commit a85f27f

Browse files
authored
fix(explorer): get proof bytes correctly (#2101)
1 parent 4ba8efb commit a85f27f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

explorer/lib/explorer_web/live/utils.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ defmodule Utils do
347347
def calculate_proof_hashes(deserialized_batch) do
348348
deserialized_batch
349349
|> Enum.map(fn s3_object ->
350-
ExKeccak.hash_256(:erlang.list_to_binary(s3_object["proof"]))
350+
ExKeccak.hash_256(s3_object["proof"].value)
351351
end)
352352
end
353353

@@ -378,9 +378,9 @@ defmodule Utils do
378378
def fetch_batch_data_pointer_with_multiple_urls(batch_data_pointers) do
379379
# Parse comma-separated URLs and limit to max 5
380380
urls = parse_batch_urls(batch_data_pointers)
381-
381+
382382
errors = []
383-
383+
384384
# Try each URL until first successful response
385385
try_urls(urls, errors)
386386
end

0 commit comments

Comments
 (0)