Skip to content

Commit

Permalink
chore: remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Oct 10, 2022
1 parent 7ca6eca commit 2ef1a19
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions x/payment/types/wirepayfordata.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@ func (msg *MsgWirePayForData) ValidateAllSquareSizesCommitedTo() error {
allSquareSizes := AllSquareSizes(int(msg.MessageSize))
committedSquareSizes := msg.committedSquareSizes()

if len(allSquareSizes) != len(committedSquareSizes) {
return ErrInvalidShareCommitments.Wrapf("length of all square sizes: %v must equal length of committed square sizes: %v", len(allSquareSizes), len(committedSquareSizes))
}

if !isEqual(allSquareSizes, committedSquareSizes) {
return ErrInvalidShareCommitments.Wrapf("all square sizes: %v, committed square sizes: %v", allSquareSizes, committedSquareSizes)
}
Expand Down

0 comments on commit 2ef1a19

Please sign in to comment.