Skip to content

Commit 2536b7c

Browse files
Update core/vm/contracts.go
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
1 parent 09d9091 commit 2536b7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/vm/contracts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ func (c *bigModExp) Run(input []byte) ([]byte, error) {
488488
mod = new(big.Int).SetBytes(getData(input, baseLen+expLen, modLen))
489489
v []byte
490490
)
491-
if c.eip7823 && max(max(baseLen, expLen), max(baseLen, modLen)) > 1024 {
491+
if c.eip7823 && max(max(baseLen, expLen), modLen) > 1024 {
492492
return nil, fmt.Errorf("one or more of base/exponent/modulus length exceeded 1024 bytes")
493493
}
494494
switch {

0 commit comments

Comments
 (0)