vm: convert items to UTF-8 strings
Add `stackitem.ToString` for seamless string conversion.
This commit is contained in:
parent
82692d8d21
commit
f40aba4cd0
9 changed files with 41 additions and 26 deletions
|
@ -128,7 +128,7 @@ func (s *storagePlugin) syscallHandler(v *vm.VM, id uint32) error {
|
|||
}
|
||||
|
||||
func (s *storagePlugin) Notify(v *vm.VM) error {
|
||||
name := string(v.Estack().Pop().Bytes())
|
||||
name := v.Estack().Pop().String()
|
||||
item := stackitem.NewArray(v.Estack().Pop().Array())
|
||||
s.events = append(s.events, state.NotificationEvent{
|
||||
Name: name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue