From c188ac0067673cbf1e66e783e045c7c3e69eb547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Anda=20Estensen?= Date: Thu, 4 Jan 2024 21:47:55 +0100 Subject: [PATCH] chore: unslice slice expressions --- pkg/square/square.go | 2 +- x/blobstream/types/validator.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/square/square.go b/pkg/square/square.go index 85a4e47359..3e5eacfefb 100644 --- a/pkg/square/square.go +++ b/pkg/square/square.go @@ -262,7 +262,7 @@ func WriteSquare( } square := make([]shares.Share, totalShares) - copy(square[:], txShares) + copy(square, txShares) copy(square[pfbStartIndex:], pfbShares) if blobWriter.Count() > 0 { copy(square[paddingStartIndex:], padding) diff --git a/x/blobstream/types/validator.go b/x/blobstream/types/validator.go index e0498ce88d..f949cbf48c 100644 --- a/x/blobstream/types/validator.go +++ b/x/blobstream/types/validator.go @@ -95,7 +95,7 @@ func (ibv InternalBridgeValidators) Sort() { // EVMAddrLessThan migrates the EVM address less than function. func EVMAddrLessThan(e common.Address, o common.Address) bool { - return bytes.Compare([]byte(e.Hex())[:], []byte(o.Hex())[:]) == -1 + return bytes.Compare([]byte(e.Hex()), []byte(o.Hex())) == -1 } // PowerDiff returns the difference in power between two bridge validator sets.