-
-
Save hayeah/03669acb493542092d8cf018bd0a5011 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if err == nil && !maxCodeSizeExceeded { | |
createDataGas := uint64(len(ret)) * params.CreateDataGas | |
if contract.UseGas(createDataGas) { | |
evm.StateDB.SetCode(contractAddr, ret) | |
} else { | |
err = ErrCodeStoreOutOfGas | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment