Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0x00101010 committed Sep 30, 2024
1 parent 4734e71 commit c68705f
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 @@ -551,7 +551,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.IsEIP158 && len(ret) > params.MaxCodeSize {
if evm.chainRules.IsEIP158 && len(ret) > params.MaxCodeSize && !evm.Config.NoMaxCodeSize {
return ret, ErrMaxCodeSizeExceeded
}

Expand Down

0 comments on commit c68705f

Please sign in to comment.