@@ -111,7 +111,7 @@ type EVM struct {
111
111
callGasTemp uint64
112
112
}
113
113
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
115
115
// only ever be used *once*.
116
116
func NewEVM (ctx Context , statedb StateDB , chainConfig * params.ChainConfig , vmConfig Config ) * EVM {
117
117
evm := & EVM {
@@ -221,7 +221,7 @@ func (evm *EVM) CallCode(caller ContractRef, addr common.Address, input []byte,
221
221
to = AccountRef (caller .Address ())
222
222
)
223
223
// 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
225
225
// only.
226
226
contract := NewContract (caller , to , value , gas )
227
227
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
341
341
evm .Transfer (evm .StateDB , caller .Address (), contractAddr , value )
342
342
343
343
// 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
345
345
// only.
346
346
contract := NewContract (caller , AccountRef (contractAddr ), value , gas )
347
347
contract .SetCallCode (& contractAddr , crypto .Keccak256Hash (code ), code )
0 commit comments