From 802c66de5e50bae380aa1280d65cbdcf36696bc9 Mon Sep 17 00:00:00 2001 From: klercker Date: Fri, 13 Dec 2024 11:26:25 +0100 Subject: [PATCH] fix(?) dialyzer error --- src/aeser_hc.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/aeser_hc.erl b/src/aeser_hc.erl index 2cad5a0..5b5c674 100644 --- a/src/aeser_hc.erl +++ b/src/aeser_hc.erl @@ -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]),