Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: unslice slice expressions #2982

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading