From 227e706490d2642f0dde2e462f8ad18785c653a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Lewandowski?= Date: Thu, 2 Nov 2023 14:03:05 +0100 Subject: [PATCH] chore(BUX-296): rename tx variables --- bump.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bump.go b/bump.go index 2cdf748..9866c14 100644 --- a/bump.go +++ b/bump.go @@ -91,22 +91,22 @@ func getOffsetPair(offset uint64) uint64 { } func prepareNodes(baseLeaf BUMPLeaf, offset uint64, leafInPair BUMPLeaf, newOffset uint64) (string, string) { - var txHash, tx2Hash string + var baseLeafHash, pairLeafHash string if baseLeaf.duplicate { - txHash = leafInPair.hash + baseLeafHash = leafInPair.hash } else { - txHash = baseLeaf.hash + baseLeafHash = baseLeaf.hash } if leafInPair.duplicate { - tx2Hash = baseLeaf.hash + pairLeafHash = baseLeaf.hash } else { - tx2Hash = leafInPair.hash + pairLeafHash = leafInPair.hash } if newOffset > offset { - return txHash, tx2Hash + return baseLeafHash, pairLeafHash } - return tx2Hash, txHash + return pairLeafHash, baseLeafHash }