core: DeepCopy notifiction event args inside System.Runtime.Notify

This commit is contained in:
Anna Shaleva 2022-05-30 11:01:12 +03:00
parent 7296f0c913
commit 42a051e55a
5 changed files with 5 additions and 5 deletions

View file

@ -68,7 +68,7 @@ func Notify(ic *interop.Context) error {
if len(bytes) > MaxNotificationSize {
return fmt.Errorf("notification size shouldn't exceed %d", MaxNotificationSize)
}
ic.AddNotification(ic.VM.GetCurrentScriptHash(), name, stackitem.DeepCopy(stackitem.NewArray(args), false).(*stackitem.Array))
ic.AddNotification(ic.VM.GetCurrentScriptHash(), name, stackitem.DeepCopy(stackitem.NewArray(args), true).(*stackitem.Array))
return nil
}