Skip to content

Commit

Permalink
revert specimen hash extraction
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 Mar 16, 2024
1 parent b357a17 commit 4219392
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/refiner/proof_chain/block_specimen_event_listener.ex
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ defmodule Refiner.ProofChain.BlockSpecimenEventListener do
{:ok, [_event_hash, chain_id_raw, block_height_raw, block_hash]} =
Map.fetch(log_event, "topics")

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

# prepare data to generate key
specimen_hash = Base.encode16(specimen_hash_raw, case: :lower)
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Refiner.MixProject do
def project do
[
app: :refiner,
version: "0.4.0",
version: "0.4.2",
elixir: "~> 1.14.3",
start_permanent: Mix.env() == :prod,
deps: deps(),
Expand Down

0 comments on commit 4219392

Please sign in to comment.