mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 23:02:27 +00:00
core: replace interop names with named constants
This commit is contained in:
parent
f3650e20b0
commit
7854dcfd8f
24 changed files with 255 additions and 177 deletions
|
@ -56,7 +56,7 @@ func getPanicSource(need bool, message string) string {
|
|||
}
|
||||
|
||||
func getLogHandler(logs *[]string) vm.SyscallHandler {
|
||||
logID := interopnames.ToID([]byte("System.Runtime.Log"))
|
||||
logID := interopnames.ToID([]byte(interopnames.SystemRuntimeLog))
|
||||
return func(v *vm.VM, id uint32) error {
|
||||
if id != logID {
|
||||
return errors.New("syscall not found")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue