From ef7c5352534ac67f98922cfd7c00fb137d3264f4 Mon Sep 17 00:00:00 2001 From: Andrei Andrukhovich Date: Thu, 17 Aug 2023 19:39:14 +0200 Subject: [PATCH] Fix 1 --- contracts/1.fc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contracts/1.fc b/contracts/1.fc index c1d7782..9f741bb 100644 --- a/contracts/1.fc +++ b/contracts/1.fc @@ -11,6 +11,9 @@ ;; testable (cell) find_branch_by_hash(int hash, cell tree) method_id { + if (cell_hash(tree) == hash) { + return tree; + } slice s = tree.begin_parse(); while (s.slice_refs_empty?() != -1) { ;; we should remind that -1 is true if (cell_hash(tree) == hash) {