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 baseFee *big.Int
blobBaseFee *big.Int blobBaseFee *big.Int
random *common.Hash random *common.Hash
slotnum uint64 slotNum uint64
) )
// If we don't have an explicit author (i.e. not mining), extract from the header // 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 random = &header.MixDigest
} }
if header.SlotNumber != nil { if header.SlotNumber != nil {
slotnum = *header.SlotNumber slotNum = *header.SlotNumber
} }
return vm.BlockContext{ return vm.BlockContext{
@ -78,7 +78,7 @@ func NewEVMBlockContext(header *types.Header, chain ChainContext, author *common
BlobBaseFee: blobBaseFee, BlobBaseFee: blobBaseFee,
GasLimit: header.GasLimit, GasLimit: header.GasLimit,
Random: random, Random: random,
Slotnum: slotnum, Slotnum: slotNum,
} }
} }

View file

@ -581,8 +581,8 @@ func enable7702(jt *JumpTable) {
jt[DELEGATECALL].dynamicGas = gasDelegateCallEIP7702 jt[DELEGATECALL].dynamicGas = gasDelegateCallEIP7702
} }
// opSlotnum enables the SLOTNUM opcode // opSlotNum enables the SLOTNUM opcode
func opSlotnum(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) { func opSlotNum(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) {
scope.Stack.push(uint256.NewInt(evm.Context.Slotnum)) scope.Stack.push(uint256.NewInt(evm.Context.Slotnum))
return nil, nil 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. // enable7843 enables the SLOTNUM opcode as specified in EIP-7843.
func enable7843(jt *JumpTable) { func enable7843(jt *JumpTable) {
jt[SLOTNUM] = &operation{ jt[SLOTNUM] = &operation{
execute: opSlotnum, execute: opSlotNum,
constantGas: GasQuickStep, constantGas: GasQuickStep,
minStack: minStack(0, 1), minStack: minStack(0, 1),
maxStack: maxStack(0, 1), maxStack: maxStack(0, 1),

View file

@ -795,7 +795,7 @@ func (api *ConsensusAPI) newPayload(params engine.ExecutableData, versionedHashe
if params.ExcessBlobGas != nil { if params.ExcessBlobGas != nil {
ebg = strconv.Itoa(int(*params.ExcessBlobGas)) ebg = strconv.Itoa(int(*params.ExcessBlobGas))
} }
slotnum := "nil" slotNum := "nil"
if params.SlotNumber != nil { if params.SlotNumber != nil {
slotnum = strconv.Itoa(int(*params.SlotNumber)) slotnum = strconv.Itoa(int(*params.SlotNumber))
} }
@ -814,7 +814,7 @@ func (api *ConsensusAPI) newPayload(params engine.ExecutableData, versionedHashe
"params.BaseFeePerGas", params.BaseFeePerGas, "params.BaseFeePerGas", params.BaseFeePerGas,
"params.BlobGasUsed", bgu, "params.BlobGasUsed", bgu,
"params.ExcessBlobGas", ebg, "params.ExcessBlobGas", ebg,
"params.SlotNumber", slotnum, "params.SlotNumber", slotNum,
"len(params.Transactions)", len(params.Transactions), "len(params.Transactions)", len(params.Transactions),
"len(params.Withdrawals)", len(params.Withdrawals), "len(params.Withdrawals)", len(params.Withdrawals),
"beaconRoot", beaconRoot, "beaconRoot", beaconRoot,