From 36fb646cb1d4e09f9c12c38f43435be4ce40df41 Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Wed, 24 Sep 2025 07:56:11 +0800 Subject: [PATCH] core/vm: fix mismatched names in comments (#1567) --- core/vm/contracts.go | 4 ++-- core/vm/interpreter.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/vm/contracts.go b/core/vm/contracts.go index 1f899e201d..e2f6a3ae72 100644 --- a/core/vm/contracts.go +++ b/core/vm/contracts.go @@ -180,7 +180,7 @@ func RunPrecompiledContract(evm *EVM, p PrecompiledContract, input []byte, suppl return output, suppliedGas, err } -// ECRECOVER implemented as a native contract. +// ecrecover implemented as a native contract. type ecrecover struct{} func (c *ecrecover) RequiredGas(input []byte) uint64 { @@ -466,7 +466,7 @@ func runBn256Add(input []byte) ([]byte, error) { return res.Marshal(), nil } -// bn256Add implements a native elliptic curve point addition conforming to +// bn256AddIstanbul implements a native elliptic curve point addition conforming to // Istanbul consensus rules. type bn256AddIstanbul struct{} diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go index e463250286..d2ceba92aa 100644 --- a/core/vm/interpreter.go +++ b/core/vm/interpreter.go @@ -53,7 +53,7 @@ func (ctx *ScopeContext) MemoryData() []byte { return ctx.Memory.Data() } -// MemoryData returns the stack data. Callers must not modify the contents +// StackData returns the stack data. Callers must not modify the contents // of the returned data. func (ctx *ScopeContext) StackData() []uint256.Int { if ctx.Stack == nil {