Skip to content

Conversation

@speeddragon
Copy link

While fetching a transaction ID, I've found a bug when HB_PARANOID was set to true.

curl -v localhost:8734/BOogk_XAI3bvNWnxNxwxmvOfglZt17o4MOVAdPNZ_ew

@speeddragon speeddragon marked this pull request as ready for review January 16, 2026 18:48
Comment on lines +71 to +72
atom(#{<<"ao-result">> := Key} = Result) ->
atom(maps:get(Key, Result)).
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might not be the final solution, but the map is returned because we have force_message set to true in the http_extra_opts.

This makes the request is_bundle to crash when checking.

details: function_clause
stack: hb_util:atom/[#{<<"ao-result">> => <<"body">>,<<"body">> => <<"false">>}] [/Users/david.magalhaes/work/ao/HyperBEAM/src/hb_util.erl:65]
  dev_codec_ans104:to/3 [/Users/david.magalhaes/work/ao/HyperBEAM/src/dev_codec_ans104.erl:138]
  dev_codec_ans104:verify/3 [/Users/david.magalhaes/work/ao/HyperBEAM/src/dev_codec_ans104.erl:75]
  dev_message:'-verify/3-fun-0-'/5 [/Users/david.magalhaes/work/ao/HyperBEAM/src/dev_message.erl:332]

@jfrain99
Copy link

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants