harmonize spelling

This commit is contained in:
MariusVanDerWijden 2026-01-13 12:13:42 +01:00 committed by Jared Wasinger
parent cb8dd58448
commit d322e378be
3 changed files with 8 additions and 8 deletions

View file

@ -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,
}
}

View file

@ -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),

View file

@ -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,