diff --git a/pkg/vm/vm_test.go b/pkg/vm/vm_test.go index dcb949e54..cb14a0fa7 100644 --- a/pkg/vm/vm_test.go +++ b/pkg/vm/vm_test.go @@ -2455,7 +2455,9 @@ func makeProgram(opcodes ...opcode.Opcode) []byte { func load(prog []byte) *VM { vm := New() - vm.LoadScript(prog) + if len(prog) != 0 { + vm.LoadScript(prog) + } return vm }