compiler: implement NEO contract wrapper
This commit is contained in:
parent
e5d8c1c985
commit
6e866b622a
3 changed files with 89 additions and 2 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue