From 3a5e0410f83cc11966fa4c414c4471468641ab58 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Mon, 29 Apr 2024 11:33:52 +0200 Subject: [PATCH] improve comment for eip4762 PUSH1 handler --- core/vm/eips.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/vm/eips.go b/core/vm/eips.go index 69b736acd2..f9208e0331 100644 --- a/core/vm/eips.go +++ b/core/vm/eips.go @@ -389,7 +389,8 @@ func opExtCodeCopyEIP4762(pc *uint64, interpreter *EVMInterpreter, scope *ScopeC return nil, nil } -// opPush1EIP4762 is a specialized version of pushN +// opPush1EIP4762 handles the special case of PUSH1 opcode for EIP-4762, which +// need not worry about the adjusted bound logic. func opPush1EIP4762(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) { var ( codeLen = uint64(len(scope.Contract.Code))