Skip to content

Commit 40c14ab

Browse files
authored
Update program.go
1 parent 3bbf5f5 commit 40c14ab

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/vm/program/program.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ type Program struct {
4242

4343
// New creates a new Program
4444
func New() *Program {
45-
return &Program{
46-
code: make([]byte, 0),
47-
}
45+
return &Program{}
4846
}
4947

5048
// add adds the op to the code.

0 commit comments

Comments
 (0)