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 } }