From d322e378be89c1e5c8887d1a75eda710a745be77 Mon Sep 17 00:00:00 2001 From: MariusVanDerWijden Date: Tue, 13 Jan 2026 12:13:42 +0100 Subject: [PATCH] harmonize spelling --- core/evm.go | 6 +++--- core/vm/eips.go | 6 +++--- eth/catalyst/api.go | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/evm.go b/core/evm.go index 7549ca92a6..496e39a4c2 100644 --- a/core/evm.go +++ b/core/evm.go @@ -44,7 +44,7 @@ func NewEVMBlockContext(header *types.Header, chain ChainContext, author *common baseFee *big.Int blobBaseFee *big.Int random *common.Hash - slotnum uint64 + slotNum uint64 ) // If we don't have an explicit author (i.e. not mining), extract from the header @@ -63,7 +63,7 @@ func NewEVMBlockContext(header *types.Header, chain ChainContext, author *common random = &header.MixDigest } if header.SlotNumber != nil { - slotnum = *header.SlotNumber + slotNum = *header.SlotNumber } return vm.BlockContext{ @@ -78,7 +78,7 @@ func NewEVMBlockContext(header *types.Header, chain ChainContext, author *common BlobBaseFee: blobBaseFee, GasLimit: header.GasLimit, Random: random, - Slotnum: slotnum, + Slotnum: slotNum, } } diff --git a/core/vm/eips.go b/core/vm/eips.go index b0b22ad73e..a6f34ccf8c 100644 --- a/core/vm/eips.go +++ b/core/vm/eips.go @@ -581,8 +581,8 @@ func enable7702(jt *JumpTable) { jt[DELEGATECALL].dynamicGas = gasDelegateCallEIP7702 } -// opSlotnum enables the SLOTNUM opcode -func opSlotnum(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) { +// opSlotNum enables the SLOTNUM opcode +func opSlotNum(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) { scope.Stack.push(uint256.NewInt(evm.Context.Slotnum)) return nil, nil } @@ -590,7 +590,7 @@ func opSlotnum(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) { // enable7843 enables the SLOTNUM opcode as specified in EIP-7843. func enable7843(jt *JumpTable) { jt[SLOTNUM] = &operation{ - execute: opSlotnum, + execute: opSlotNum, constantGas: GasQuickStep, minStack: minStack(0, 1), maxStack: maxStack(0, 1), diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index f6157a3fc9..a08acd045c 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -795,7 +795,7 @@ func (api *ConsensusAPI) newPayload(params engine.ExecutableData, versionedHashe if params.ExcessBlobGas != nil { ebg = strconv.Itoa(int(*params.ExcessBlobGas)) } - slotnum := "nil" + slotNum := "nil" if params.SlotNumber != nil { slotnum = strconv.Itoa(int(*params.SlotNumber)) } @@ -814,7 +814,7 @@ func (api *ConsensusAPI) newPayload(params engine.ExecutableData, versionedHashe "params.BaseFeePerGas", params.BaseFeePerGas, "params.BlobGasUsed", bgu, "params.ExcessBlobGas", ebg, - "params.SlotNumber", slotnum, + "params.SlotNumber", slotNum, "len(params.Transactions)", len(params.Transactions), "len(params.Withdrawals)", len(params.Withdrawals), "beaconRoot", beaconRoot,