From a4d402da8640a862f84dbe7b8c4df55326743e7c Mon Sep 17 00:00:00 2001 From: AnnaShaleva Date: Thu, 24 Feb 2022 13:39:39 +0300 Subject: [PATCH] compiler: revert a part of ad65d1fa1f43177e507636fe4bbe4038629481b8 Close #2335. --- pkg/compiler/compiler.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pkg/compiler/compiler.go b/pkg/compiler/compiler.go index 8bdfac375..e3f0cf45c 100644 --- a/pkg/compiler/compiler.go +++ b/pkg/compiler/compiler.go @@ -11,7 +11,6 @@ import ( "io" "os" "path/filepath" - "runtime" "strings" "github.com/nspcc-dev/neo-go/pkg/smartcontract/binding" @@ -162,14 +161,7 @@ func getBuildInfo(name string, src interface{}) (*buildInfo, error) { default: panic(fmt.Sprintf("unsupported src type: %T", s)) } - if strings.HasPrefix(runtime.Version(), "go1.15") { - dir = os.TempDir() - name = filepath.Join(dir, filepath.Base(name)) - absName = name - names = append(names, "file="+name) - } else { - names = append(names, name) - } + names = append(names, name) conf.Overlay[absName] = buf } else { if strings.HasSuffix(name, ".go") {