compiler: implement NEO contract wrapper

This commit is contained in:
Evgeniy Stratonikov 2021-02-08 11:06:01 +03:00
parent e5d8c1c985
commit 6e866b622a
3 changed files with 89 additions and 2 deletions

View file

@ -275,6 +275,12 @@ func isSyscall(fun *funcScope) bool {
return ok
}
const interopPrefix = "github.com/nspcc-dev/neo-go/pkg/interop"
func isInteropPath(s string) bool {
return strings.HasPrefix(s, "github.com/nspcc-dev/neo-go/pkg/interop")
return strings.HasPrefix(s, interopPrefix)
}
func isNativeHelpersPath(s string) bool {
return strings.HasPrefix(s, interopPrefix+"/native")
}