core: deepcopy notification in System.Runtime.Notify
Make it impossible to change already emitted notifications via `System.Runtime.GetNotifications`.
This commit is contained in:
parent
b8cc33d0b2
commit
194da64975
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ func GetNotifications(ic *interop.Context, v *vm.VM) error {
|
|||
ev := stackitem.NewArray([]stackitem.Item{
|
||||
stackitem.NewByteArray(notifications[i].ScriptHash.BytesBE()),
|
||||
stackitem.Make(notifications[i].Name),
|
||||
notifications[i].Item,
|
||||
stackitem.DeepCopy(notifications[i].Item).(*stackitem.Array),
|
||||
})
|
||||
arr.Append(ev)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue