Skip to content

Commit

Permalink
chore: unslice slice expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
estensen committed Jan 4, 2024
1 parent 23d13d4 commit c188ac0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/square/square.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion x/blobstream/types/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c188ac0

Please sign in to comment.