Skip to content

Commit bfcdf35

Browse files
committed
fix comments
1 parent c8dafa7 commit bfcdf35

File tree

3 files changed

+243
-17
lines changed

3 files changed

+243
-17
lines changed

core/vm/contracts.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -613,9 +613,8 @@ func (c *bigModExp) Run(input []byte) ([]byte, error) {
613613
inputLenOverflow = max(baseLenBig.BitLen(), expLenBig.BitLen(), modLenBig.BitLen()) > 64
614614
)
615615

616-
// As ZKVM offers better compatibility, this check is no longer needed for EIP-7823 and EIP-7883,
617-
// but it still needs to be retained for EIP-2565 to ensure backward compatibility.
618-
if c.eip2565 {
616+
// Needs to be retained for blocks before Galileo
617+
if c.eip2565 && !(c.eip7823 || c.eip7883) {
619618
// Check that all inputs are `u256` (32 - bytes) or less, revert otherwise
620619
var lenLimit = new(big.Int).SetInt64(32)
621620
if baseLenBig.Cmp(lenLimit) > 0 || expLenBig.Cmp(lenLimit) > 0 || modLenBig.Cmp(lenLimit) > 0 {

0 commit comments

Comments
 (0)