From 0cb3348668b4a7462ae036d5d262b52a322e92d0 Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Fri, 8 Aug 2025 23:56:32 +0800 Subject: [PATCH] core/vm: make types consistent in makeDup --- core/vm/instructions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/vm/instructions.go b/core/vm/instructions.go index fffa65fd6a..44d3e81a9c 100644 --- a/core/vm/instructions.go +++ b/core/vm/instructions.go @@ -1003,9 +1003,9 @@ func makePush(size uint64, pushByteSize int) executionFunc { } // make dup instruction function -func makeDup(size int64) executionFunc { +func makeDup(size int) executionFunc { return func(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) { - scope.Stack.dup(int(size)) + scope.Stack.dup(size) return nil, nil } }