aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-03-27 15:08:58 +0800
committerGitHub <noreply@github.com>2018-03-27 15:08:58 +0800
commitd763e20d5536581c6e16bf3b26faba3905c0681f (patch)
tree33a7f7db678375dac643e3db04b9b32da7d80d6f
parent85ea9159d03c733791b92a4b445a5a750056eb39 (diff)
parent61349907099f2e7cee7ce90e0191fe3f9df2e09e (diff)
downloaddexon-d763e20d5536581c6e16bf3b26faba3905c0681f.tar.gz
dexon-d763e20d5536581c6e16bf3b26faba3905c0681f.tar.zst
dexon-d763e20d5536581c6e16bf3b26faba3905c0681f.zip
Merge pull request #16394 from hydai/fix_typo
core/vm: Fixed typos in core/vm/interpreter.go
-rw-r--r--core/vm/interpreter.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go
index 47d5e7f2f..7090e0261 100644
--- a/core/vm/interpreter.go
+++ b/core/vm/interpreter.go
@@ -42,7 +42,7 @@ type Config struct {
}
// Interpreter is used to run Ethereum based contracts and will utilise the
-// passed evmironment to query external sources for state information.
+// passed environment to query external sources for state information.
// The Interpreter will run the byte code VM based on the passed
// configuration.
type Interpreter struct {
@@ -184,7 +184,7 @@ func (in *Interpreter) Run(contract *Contract, input []byte) (ret []byte, err er
}
}
// consume the gas and return an error if not enough gas is available.
- // cost is explicitly set so that the capture state defer method cas get the proper cost
+ // cost is explicitly set so that the capture state defer method can get the proper cost
cost, err = operation.gasCost(in.gasTable, in.evm, contract, stack, mem, memorySize)
if err != nil || !contract.UseGas(cost) {
return nil, ErrOutOfGas