Skip to content

Commit

Permalink
fix code size issue after Shanghai
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Ballet <[email protected]>
  • Loading branch information
gballet committed Nov 19, 2024
1 parent ea04b41 commit f8c4e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ func (evm *EVM) initNewContract(contract *Contract, address common.Address, valu

// Check whether the max code size has been exceeded, assign err if the case.
if evm.chainRules.IsShanghai && len(ret) > params.MaxCodeSize {
err = ErrMaxCodeSizeExceeded
return nil, ErrMaxCodeSizeExceeded
}

// Reject code starting with 0xEF if EIP-3541 is enabled.
Expand Down

0 comments on commit f8c4e8e

Please sign in to comment.