Browse Source

fix for V-SCT-VUL-032

main
Kevin Jue 1 year ago
parent
commit
9e6d08b99c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      plonk/gates/constant_gate.go

+ 2
- 2
plonk/gates/constant_gate.go

@ -41,14 +41,14 @@ func (g *ConstantGate) Id() string {
}
func (g *ConstantGate) ConstInput(i uint64) uint64 {
if i > g.numConsts {
if i >= g.numConsts {
panic("Invalid constant index")
}
return i
}
func (g *ConstantGate) WireOutput(i uint64) uint64 {
if i > g.numConsts {
if i >= g.numConsts {
panic("Invalid wire index")
}
return i

Loading…
Cancel
Save