improve comment for eip4762 PUSH1 handler

This commit is contained in:
Guillaume Ballet 2024-04-29 11:33:52 +02:00
parent 4030cdd81f
commit 3a5e0410f8

View file

@ -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))