mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-09 03:13:13 +00:00
trigger/core: split System trigger into OnPerist and PostPersist
Follow neo-project/neo#2022.
This commit is contained in:
parent
044786b995
commit
eaa260474f
12 changed files with 49 additions and 31 deletions
|
@ -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)})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue