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.