From 1faec387fe4c950beb770f47ae4725919dcd6c65 Mon Sep 17 00:00:00 2001 From: Dan Laine Date: Tue, 7 Nov 2023 17:34:09 -0500 Subject: [PATCH] `merkledb` -- rename nit (#2267) --- x/merkledb/proof.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/merkledb/proof.go b/x/merkledb/proof.go index f750158d4c11..c94a68f7db5b 100644 --- a/x/merkledb/proof.go +++ b/x/merkledb/proof.go @@ -840,9 +840,9 @@ func addPathInfo( if existingChild, ok := n.children[index]; ok { compressedKey = existingChild.compressedKey } - childPath := key.Extend(ToToken(index, t.tokenSize), compressedKey) - if (shouldInsertLeftChildren && childPath.Less(insertChildrenLessThan.Value())) || - (shouldInsertRightChildren && childPath.Greater(insertChildrenGreaterThan.Value())) { + childKey := key.Extend(ToToken(index, t.tokenSize), compressedKey) + if (shouldInsertLeftChildren && childKey.Less(insertChildrenLessThan.Value())) || + (shouldInsertRightChildren && childKey.Greater(insertChildrenGreaterThan.Value())) { // We didn't set the other values on the child entry, but it doesn't matter. // We only need the IDs to be correct so that the calculated hash is correct. n.setChildEntry(