|
|
@@ -336,7 +336,7 @@ func (evm *EVM) Create(caller ContractRef, code []byte, gas uint64, value *big.I
|
|
|
|
|
|
ret, err = run(evm, snapshot, contract, nil)
|
|
|
// check whether the max code size has been exceeded
|
|
|
- maxCodeSizeExceeded := len(ret) > params.MaxCodeSize
|
|
|
+ maxCodeSizeExceeded := evm.ChainConfig().IsEIP158(evm.BlockNumber) && len(ret) > params.MaxCodeSize
|
|
|
// if the contract creation ran successfully and no errors were returned
|
|
|
// calculate the gas required to store the code. If the code could not
|
|
|
// be stored due to not enough gas set an error and let it be handled
|