Skip to content

Commit

Permalink
adjust extracted log data signature
Browse files Browse the repository at this point in the history
Signed-off-by: Pranay Valson <pranay.valson@gmail.com>
  • Loading branch information
noslav committed Jan 9, 2024
1 parent 7a54c6f commit 5007fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rudder/proof_chain/block_specimen_event_listener.ex
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ defmodule Rudder.ProofChain.BlockSpecimenEventListener do
{:ok, [_event_hash, chain_id_raw, block_height_raw, block_hash]} =
Map.fetch(log_event, "topics")

[specimen_hash_raw] = Rudder.Util.extract_data(log_event, "(bytes32)")
[_validator_bit_map, specimen_hash_raw] = Rudder.Util.extract_data(log_event, "(uint256,bytes32)")

Check warning on line 67 in lib/rudder/proof_chain/block_specimen_event_listener.ex

View check run for this annotation

Codecov / codecov/patch

lib/rudder/proof_chain/block_specimen_event_listener.ex#L67

Added line #L67 was not covered by tests

# prepare data to generate key
specimen_hash = Base.encode16(specimen_hash_raw, case: :lower)
Expand Down

0 comments on commit 5007fd9

Please sign in to comment.