aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-03-26 22:05:35 +0800
committerGitHub <noreply@github.com>2018-03-26 22:05:35 +0800
commitc053f1146d777fef4e481f493946957d447b89d0 (patch)
tree0eaa213a9b4b4270b7c72c1ca0b27b597b7c8ef2
parentdb9b2f5405643b3584eaa90b05a3dbfa19d717fb (diff)
parentc3dc814fea97650a9791be87576534de01666763 (diff)
downloadgo-tangerine-c053f1146d777fef4e481f493946957d447b89d0.tar
go-tangerine-c053f1146d777fef4e481f493946957d447b89d0.tar.gz
go-tangerine-c053f1146d777fef4e481f493946957d447b89d0.tar.bz2
go-tangerine-c053f1146d777fef4e481f493946957d447b89d0.tar.lz
go-tangerine-c053f1146d777fef4e481f493946957d447b89d0.tar.xz
go-tangerine-c053f1146d777fef4e481f493946957d447b89d0.tar.zst
go-tangerine-c053f1146d777fef4e481f493946957d447b89d0.zip
Merge pull request #16388 from hydai/fix_comments
core/vm: Fixed typos
-rw-r--r--core/vm/evm.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/vm/evm.go b/core/vm/evm.go
index 46e7baff4..96676c314 100644
--- a/core/vm/evm.go
+++ b/core/vm/evm.go
@@ -111,7 +111,7 @@ type EVM struct {
callGasTemp uint64
}
-// NewEVM retutrns a new EVM . The returned EVM is not thread safe and should
+// NewEVM returns a new EVM. The returned EVM is not thread safe and should
// only ever be used *once*.
func NewEVM(ctx Context, statedb StateDB, chainConfig *params.ChainConfig, vmConfig Config) *EVM {
evm := &EVM{
@@ -221,7 +221,7 @@ func (evm *EVM) CallCode(caller ContractRef, addr common.Address, input []byte,
to = AccountRef(caller.Address())
)
// initialise a new contract and set the code that is to be used by the
- // E The contract is a scoped evmironment for this execution context
+ // EVM. The contract is a scoped environment for this execution context
// only.
contract := NewContract(caller, to, value, gas)
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
evm.Transfer(evm.StateDB, caller.Address(), contractAddr, value)
// initialise a new contract and set the code that is to be used by the
- // E The contract is a scoped evmironment for this execution context
+ // EVM. The contract is a scoped environment for this execution context
// only.
contract := NewContract(caller, AccountRef(contractAddr), value, gas)
contract.SetCallCode(&contractAddr, crypto.Keccak256Hash(code), code)