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

@ -78,7 +78,7 @@ func TestDesignate_DesignateAsRole(t *testing.T) {
des := bc.contracts.Designate
tx := transaction.New(netmode.UnitTestNet, []byte{}, 0)
ic := bc.newInteropContext(trigger.System, bc.dao, nil, tx)
ic := bc.newInteropContext(trigger.OnPersist, bc.dao, nil, tx)
ic.SpawnVM()
ic.VM.LoadScript([]byte{byte(opcode.RET)})