Merge pull request #2525 from nspcc-dev/immutable-items

vm: implement immutable stackitems
This commit is contained in:
Roman Khimov 2022-05-31 10:36:56 +03:00 committed by GitHub
commit e1607e23c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 112 additions and 21 deletions

View file

@ -54,7 +54,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).(*stackitem.Array),
notifications[i].Item,
})
arr.Append(ev)
}