From fb93d6fc41016cb0495264fe34366d5df7f32a6e Mon Sep 17 00:00:00 2001 From: speeddragon Date: Fri, 6 Mar 2026 19:27:00 +0000 Subject: [PATCH] fix: hb_store_gateway:remote_hyperbeam_node_ans104_test flaky test --- src/dev_query_arweave.erl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/dev_query_arweave.erl b/src/dev_query_arweave.erl index 995309e6b..104666324 100644 --- a/src/dev_query_arweave.erl +++ b/src/dev_query_arweave.erl @@ -82,13 +82,14 @@ query(Block, <<"timestamp">>, _Args, Opts) -> query(Msg, <<"signature">>, _Args, Opts) -> % Return the signature of the transaction. % Other TX access methods are defined below. - case hb_maps:get(<<"commitments">>, Msg, not_found, Opts) of + case hb_message:commitments(#{ <<"committer">> => '_' }, Msg, Opts) of not_found -> {ok, null}; Commitments -> - case maps:to_list(Commitments) of + case hb_maps:keys(Commitments) of [] -> {ok, null}; - [{_CommitmentID, Commitment} | _] -> - {ok, hb_maps:get(<<"signature">>, Commitment, null, Opts)} + [CommID | _] -> + {ok, Commitment} = hb_maps:find(CommID, Commitments, Opts), + hb_maps:find(<<"signature">>, Commitment, Opts) end end; query(Msg, <<"owner">>, _Args, Opts) ->