From 2b63f97d1e67d0b82d2cf2b76c7e6d776d4b24d3 Mon Sep 17 00:00:00 2001 From: Gregory Newman-Smith Date: Thu, 10 Oct 2024 09:45:19 +0100 Subject: [PATCH] small update --- base/util.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/base/util.go b/base/util.go index b2039afcd4..b48a802322 100644 --- a/base/util.go +++ b/base/util.go @@ -1024,10 +1024,7 @@ func HexCasToUint64ForDelta(casByte []byte) (uint64, error) { // as we strip any zeros off the end of the hex value for deltas, the input delta could be odd length if len(casByte)%2 != 0 { - evenHexLen := make([]byte, len(casByte), len(casByte)+1) - copy(evenHexLen, casByte) - evenHexLen = append(evenHexLen, '0') - casByte = evenHexLen + casByte = append(casByte, '0') } // create byte array for decoding into