native: emit Deploy/Update notifications on native deploy/update
Ported as a part of https://github.com/neo-project/neo/pull/2942. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
d62fad1268
commit
73c742a466
1 changed files with 6 additions and 0 deletions
|
@ -659,6 +659,12 @@ func (m *Management) OnPersist(ic *interop.Context) error {
|
|||
cache = ic.DAO.GetRWCache(m.ID).(*ManagementCache)
|
||||
}
|
||||
updateContractCache(cache, cs)
|
||||
|
||||
ntfName := contractDeployNotificationName
|
||||
if isUpdate {
|
||||
ntfName = contractUpdateNotificationName
|
||||
}
|
||||
m.emitNotification(ic, ntfName, cs.Hash)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue