Skip to content

Commit

Permalink
fix(?) dialyzer error
Browse files Browse the repository at this point in the history
  • Loading branch information
klercker committed Dec 13, 2024
1 parent f7ffb21 commit 802c66d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aeser_hc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ encode_parent_pin_payload(#{epoch := Epoch, height := Height, block_hash := Bloc
%% Decode a bionary payload to an Epoch info map when fetching pinning info
%% from the parent chain
%% =============================================================================
-spec decode_parent_pin_payload(binary()) -> #{epoch => integer(), height => integer(), block_hash => binary()}.
-spec decode_parent_pin_payload(binary()) ->
{ok, #{epoch => integer(), height => integer(), block_hash => term()}} | {error, term()}.
decode_parent_pin_payload(Binary) ->
try
[HexEpoch, HexHeight, EncBlockHash] = binary:split(Binary, [<<":">>, <<" ">>], [global]),
Expand Down

0 comments on commit 802c66d

Please sign in to comment.