core/vm: remove a redundant zero check in opAddmod (#29672)

pull/29281/head
Aaron Chen 7 months ago committed by GitHub
parent 242b24af9f
commit ea89f9adf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      core/vm/instructions.go

@ -173,11 +173,7 @@ func opByte(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byt
func opAddmod(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) {
x, y, z := scope.Stack.pop(), scope.Stack.pop(), scope.Stack.peek()
if z.IsZero() {
z.Clear()
} else {
z.AddMod(&x, &y, z)
}
return nil, nil
}

Loading…
Cancel
Save