@@ -111,7 +111,7 @@ type EVM struct {
111111 callGasTemp uint64
112112}
113113
114- // NewEVM retutrns a new EVM . The returned EVM is not thread safe and should
114+ // NewEVM returns a new EVM. The returned EVM is not thread safe and should
115115// only ever be used *once*.
116116func NewEVM (ctx Context , statedb StateDB , chainConfig * params.ChainConfig , vmConfig Config ) * EVM {
117117 evm := & EVM {
@@ -221,7 +221,7 @@ func (evm *EVM) CallCode(caller ContractRef, addr common.Address, input []byte,
221221 to = AccountRef (caller .Address ())
222222 )
223223 // initialise a new contract and set the code that is to be used by the
224- // E The contract is a scoped evmironment for this execution context
224+ // EVM. The contract is a scoped environment for this execution context
225225 // only.
226226 contract := NewContract (caller , to , value , gas )
227227 contract .SetCallCode (& addr , evm .StateDB .GetCodeHash (addr ), evm .StateDB .GetCode (addr ))
@@ -341,7 +341,7 @@ func (evm *EVM) Create(caller ContractRef, code []byte, gas uint64, value *big.I
341341 evm .Transfer (evm .StateDB , caller .Address (), contractAddr , value )
342342
343343 // initialise a new contract and set the code that is to be used by the
344- // E The contract is a scoped evmironment for this execution context
344+ // EVM. The contract is a scoped environment for this execution context
345345 // only.
346346 contract := NewContract (caller , AccountRef (contractAddr ), value , gas )
347347 contract .SetCallCode (& contractAddr , crypto .Keccak256Hash (code ), code )
0 commit comments