From 03c47ad9e05736f33b008e2e8d6d036e0e43e940 Mon Sep 17 00:00:00 2001 From: MariusVanDerWijden Date: Wed, 23 Jul 2025 11:56:33 +0200 Subject: [PATCH] core/vm: fix lint --- core/vm/contracts.go | 2 +- internal/ethapi/override/override_test.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/vm/contracts.go b/core/vm/contracts.go index 6232c68b3b..0bfcb7f43b 100644 --- a/core/vm/contracts.go +++ b/core/vm/contracts.go @@ -1319,7 +1319,7 @@ func (b *kzgPointEvaluation) Run(input []byte) ([]byte, error) { return common.Hex2Bytes(blobPrecompileReturnValue), nil } -func (c *kzgPointEvaluation) Name() string { +func (b *kzgPointEvaluation) Name() string { return "KZG_POINT_EVALUATION" } diff --git a/internal/ethapi/override/override_test.go b/internal/ethapi/override/override_test.go index 41b4f2c253..38d2b42dc9 100644 --- a/internal/ethapi/override/override_test.go +++ b/internal/ethapi/override/override_test.go @@ -39,6 +39,8 @@ func (p *precompileContract) RequiredGas(input []byte) uint64 { return 0 } func (p *precompileContract) Run(input []byte) ([]byte, error) { return nil, nil } +func (p *precompileContract) Name() string { return "" } + func TestStateOverrideMovePrecompile(t *testing.T) { db := state.NewDatabase(triedb.NewDatabase(rawdb.NewMemoryDatabase(), nil), nil) statedb, err := state.New(types.EmptyRootHash, db)