interop/runtime: allow calling script hash to pass CheckWitness

See neo-project/neo#1924 and neo-project/neo#1925.
This commit is contained in:
Roman Khimov 2020-09-29 09:56:19 +03:00
parent bf3ed10951
commit 53c9690bdc
4 changed files with 12 additions and 1 deletions

View file

@ -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()