mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 13:41:37 +00:00
core: adjust System.Runtime.Platform interop
Part of #1055. Added `Platform` method to compiler.
This commit is contained in:
parent
88e003d219
commit
76acef18ad
2 changed files with 7 additions and 0 deletions
|
@ -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},
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue