Skip to content

Commit

Permalink
Remove redundant validation checks in CreateWitness
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeytimoshin committed Jan 3, 2025
1 parent 67f7c1a commit 052cf2d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions prover/server/prover/batch_address_append_circuit.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,6 @@ func InitBatchAddressTreeAppendCircuit(treeHeight uint32, batchSize uint32) Batc
}

func (params *BatchAddressAppendParameters) CreateWitness() (*BatchAddressTreeAppendCircuit, error) {
if params.BatchSize == 0 {
return nil, fmt.Errorf("batch size cannot be 0")
}
if params.TreeHeight == 0 {
return nil, fmt.Errorf("tree height cannot be 0")
}

circuit := &BatchAddressTreeAppendCircuit{
BatchSize: params.BatchSize,
TreeHeight: params.TreeHeight,
Expand Down

0 comments on commit 052cf2d

Please sign in to comment.