Make dryrun operate on the top block. #3

Merged
spivee merged 2 commits from dryrun-fix into spivee/convert-arg-fix 2025-03-01 13:10:44 +09:00
Showing only changes of commit 4efc38d319 - Show all commits

View File

@ -619,9 +619,9 @@ dry_run(TX) ->
%% supplied accounts. %% supplied accounts.
dry_run(TX, Accounts) -> dry_run(TX, Accounts) ->
case kb_current_hash() of case top_block() of
{ok, Hash} -> dry_run(TX, Accounts, Hash); {ok, #{"hash" := Hash}} -> dry_run(TX, Accounts, Hash);
Error -> Error Error -> Error
end. end.