diff --git a/core/vm/instructions.go b/core/vm/instructions.go index 36a10f09934c..fe08fac675a3 100644 --- a/core/vm/instructions.go +++ b/core/vm/instructions.go @@ -1118,9 +1118,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 } }