mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-05 23:55:11 +00:00
interop/runtime: allow calling script hash to pass CheckWitness
See neo-project/neo#1924 and neo-project/neo#1925.
This commit is contained in:
parent
bf3ed10951
commit
53c9690bdc
4 changed files with 12 additions and 1 deletions
|
@ -431,6 +431,8 @@ func TestVerifyTx(t *testing.T) {
|
|||
VerificationScript: testchain.CommitteeVerificationScript(),
|
||||
}}
|
||||
ic := bc.newInteropContext(trigger.All, bc.dao, nil, txSetOracle)
|
||||
ic.SpawnVM()
|
||||
ic.VM.LoadScript([]byte{byte(opcode.RET)})
|
||||
require.NoError(t, bc.contracts.Oracle.SetOracleNodes(ic, oraclePubs))
|
||||
bc.contracts.Oracle.OnPersistEnd(ic.DAO)
|
||||
_, err = ic.DAO.Persist()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue