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)