remove syntax reversion

This commit is contained in:
Jared Wasinger 2025-05-29 22:01:29 +08:00
parent e7d7126433
commit 1ff583fee6

View file

@ -482,7 +482,7 @@ func (c *bigModExp) Run(input []byte) ([]byte, error) {
return []byte{}, nil return []byte{}, nil
} }
// enforce size cap for inputs // enforce size cap for inputs
if c.eip7823 && max(max(baseLen, expLen), max(baseLen, modLen)) > 1024 { if c.eip7823 && max(baseLen, expLen, modLen) > 1024 {
return nil, fmt.Errorf("one or more of base/exponent/modulus length exceeded 1024 bytes") return nil, fmt.Errorf("one or more of base/exponent/modulus length exceeded 1024 bytes")
} }
// Retrieve the operands and execute the exponentiation // Retrieve the operands and execute the exponentiation