Make dryrun operate on the top block.

This commit is contained in:
2025-03-01 12:42:23 +09:00
parent ede98b9e96
commit 4efc38d319
+3 -3
View File
@@ -619,9 +619,9 @@ dry_run(TX) ->
%% supplied accounts.
dry_run(TX, Accounts) ->
case kb_current_hash() of
{ok, Hash} -> dry_run(TX, Accounts, Hash);
Error -> Error
case top_block() of
{ok, #{"hash" := Hash}} -> dry_run(TX, Accounts, Hash);
Error -> Error
end.