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

@ -53,7 +53,7 @@ func GetNotifications(ic *interop.Context) error {
ev := stackitem.NewArray([]stackitem.Item{
stackitem.NewByteArray(notifications[i].ScriptHash.BytesBE()),
stackitem.Make(notifications[i].Name),
stackitem.DeepCopy(notifications[i].Item, false).(*stackitem.Array),
notifications[i].Item,
})
arr.Append(ev)
}