Skip to content

Commit fa6107c

Browse files
authored
core: fix typos (#28255)
fixes various typos in core
1 parent 0832679 commit fa6107c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

core/vm/contract.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ type ContractRef interface {
3131
// AccountRef implements ContractRef.
3232
//
3333
// Account references are used during EVM initialisation and
34-
// it's primary use is to fetch addresses. Removing this object
34+
// its primary use is to fetch addresses. Removing this object
3535
// proves difficult because of the cached jump destinations which
3636
// are fetched from the parent contract (i.e. the caller), which
3737
// is a ContractRef.
3838
type AccountRef common.Address
3939

40-
// Address casts AccountRef to a Address
40+
// Address casts AccountRef to an Address
4141
func (ar AccountRef) Address() common.Address { return (common.Address)(ar) }
4242

4343
// Contract represents an ethereum contract in the state database. It contains

core/vm/gas_table.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func gasSStore(evm *EVM, contract *Contract, stack *Stack, mem *Memory, memorySi
104104
// Legacy rules should be applied if we are in Petersburg (removal of EIP-1283)
105105
// OR Constantinople is not active
106106
if evm.chainRules.IsPetersburg || !evm.chainRules.IsConstantinople {
107-
// This checks for 3 scenario's and calculates gas accordingly:
107+
// This checks for 3 scenarios and calculates gas accordingly:
108108
//
109109
// 1. From a zero-value address to a non-zero value (NEW VALUE)
110110
// 2. From a non-zero value address to a zero-value address (DELETE)

core/vm/interpreter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type EVMInterpreter struct {
4545
table *JumpTable
4646

4747
hasher crypto.KeccakState // Keccak256 hasher instance shared across opcodes
48-
hasherBuf common.Hash // Keccak256 hasher result array shared aross opcodes
48+
hasherBuf common.Hash // Keccak256 hasher result array shared across opcodes
4949

5050
readOnly bool // Whether to throw on stateful modifications
5151
returnData []byte // Last CALL's return data for subsequent reuse

core/vm/jump_table_export.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"github.com/ethereum/go-ethereum/params"
2323
)
2424

25-
// LookupInstructionSet returns the instructionset for the fork configured by
25+
// LookupInstructionSet returns the instruction set for the fork configured by
2626
// the rules.
2727
func LookupInstructionSet(rules params.Rules) (JumpTable, error) {
2828
switch {
@@ -56,7 +56,7 @@ func LookupInstructionSet(rules params.Rules) (JumpTable, error) {
5656
return newFrontierInstructionSet(), nil
5757
}
5858

59-
// Stack returns the mininum and maximum stack requirements.
59+
// Stack returns the minimum and maximum stack requirements.
6060
func (op *operation) Stack() (int, int) {
6161
return op.minStack, op.maxStack
6262
}

0 commit comments

Comments
 (0)