From 4efc38d319f0657a9ad210e843c6ab126eab6918 Mon Sep 17 00:00:00 2001 From: Craig Everett Date: Sat, 1 Mar 2025 12:42:23 +0900 Subject: [PATCH] Make dryrun operate on the top block. --- src/hz.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hz.erl b/src/hz.erl index 27a22cf..f6e1854 100644 --- a/src/hz.erl +++ b/src/hz.erl @@ -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.