core: adjust System.Runtime.Platform interop

Part of #1055.

Added `Platform` method to compiler.
This commit is contained in:
Anna Shaleva 2020-07-21 15:11:17 +03:00
parent 88e003d219
commit 76acef18ad
2 changed files with 7 additions and 0 deletions

View file

@ -68,6 +68,7 @@ var syscalls = map[string]map[string]Syscall{
"CheckWitness": {"System.Runtime.CheckWitness", false},
"Log": {"System.Runtime.Log", false},
"Notify": {"System.Runtime.Notify", false},
"Platform": {"System.Runtime.Platform", false},
},
"storage": {
"ConvertContextToReadOnly": {"System.Storage.AsReadOnly", false},

View file

@ -80,3 +80,9 @@ func GetNotifications(h []byte) [][]interface{} {
func GetInvocationCounter() int {
return 0
}
// Platform returns the platform name, which is set to be `NEO`. This function uses
// `System.Runtime.Platform` syscall.
func Platform() []byte {
return nil
}