From 0572bcdb06beaa764869cce2019302617843d3e7 Mon Sep 17 00:00:00 2001 From: Martin HS Date: Thu, 24 Oct 2024 09:03:07 +0200 Subject: [PATCH] core/vm: doc-suggestions from code review Co-authored-by: Sina M <1591639+s1na@users.noreply.github.com> --- core/vm/interpreter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go index e98db1fb34..c408994401 100644 --- a/core/vm/interpreter.go +++ b/core/vm/interpreter.go @@ -249,7 +249,7 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) ( } else if sLen > operation.maxStack { return nil, &ErrStackOverflow{stackLen: sLen, limit: operation.maxStack} } - // for tracing: this gas consumption is ignored, so can be done in-line + // for tracing: this gas consumption event is emitted below in the debug section. if contract.Gas < cost { return nil, ErrOutOfGas } else { @@ -282,7 +282,7 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) ( if err != nil { return nil, fmt.Errorf("%w: %v", ErrOutOfGas, err) } - // for tracing: this gas consumption is ignored, so can be done in-line + // for tracing: this gas consumption event is emitted below in the debug section. if contract.Gas < dynamicCost { return nil, ErrOutOfGas } else {