mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 11:41:48 +00:00
rpc: restructure getapplicationlog
response
Move VM-related fields to top-level.
This commit is contained in:
parent
93b0011988
commit
c0e482fe6c
7 changed files with 20 additions and 53 deletions
|
@ -77,7 +77,7 @@ func (f *feed) Matches(r *response.Notification) bool {
|
|||
case response.ExecutionEventID:
|
||||
filt := f.filter.(request.ExecutionFilter)
|
||||
applog := r.Payload[0].(result.ApplicationLog)
|
||||
return len(applog.Executions) != 0 && applog.Executions[0].VMState == filt.State
|
||||
return applog.VMState == filt.State
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue