trigger/core: split System trigger into OnPerist and PostPersist

Follow neo-project/neo#2022.
This commit is contained in:
Roman Khimov 2020-10-29 19:14:49 +03:00
parent 044786b995
commit eaa260474f
12 changed files with 49 additions and 31 deletions

View file

@ -770,7 +770,7 @@ func testRPCProtocol(t *testing.T, doRPCCall func(string, string, *testing.T) []
data := checkErrGetResult(t, body, false)
var res state.AppExecResult
require.NoError(t, json.Unmarshal(data, &res))
require.Equal(t, trigger.System, res.Trigger)
require.Equal(t, trigger.PostPersist, res.Trigger)
require.Equal(t, vm.HaltState, res.VMState)
})