From d7194e4da588dbe82570e09faa392d03c2360a63 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 10 Dec 2020 17:45:23 +0300 Subject: [PATCH] compiler: do not check for main package in `ConvertToManifest` --- pkg/compiler/debug.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/compiler/debug.go b/pkg/compiler/debug.go index 4fc221504..978241130 100644 --- a/pkg/compiler/debug.go +++ b/pkg/compiler/debug.go @@ -426,9 +426,6 @@ func parsePairJSON(data []byte, sep string) (string, string, error) { // ConvertToManifest converts contract to the manifest.Manifest struct for debugger. // Note: manifest is taken from the external source, however it can be generated ad-hoc. See #1038. func (di *DebugInfo) ConvertToManifest(o *Options) (*manifest.Manifest, error) { - if di.MainPkg == "" { - return nil, errors.New("no Main method was found") - } methods := make([]manifest.Method, 0) for _, method := range di.Methods { if method.IsExported && method.IsFunction && method.Name.Namespace == di.MainPkg {