From 40072af04af3c967fb5d1358c334b9b005d9661a Mon Sep 17 00:00:00 2001 From: cui Date: Mon, 11 Aug 2025 15:00:11 +0800 Subject: [PATCH] core/vm: make types consistent in makeDup (#32378) --- 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 } }