vm, core: move invocation counter from InteropContext to VM

This commit is contained in:
Anna Shaleva 2020-10-05 13:08:55 +03:00
parent 45bfce60a5
commit 6ce00fde82
5 changed files with 8 additions and 6 deletions

View file

@ -296,7 +296,7 @@ func TestRuntimeGetInvocationCounter(t *testing.T) {
v, ic, chain := createVM(t)
defer chain.Close()
ic.Invocations[hash.Hash160([]byte{2})] = 42
ic.VM.Invocations[hash.Hash160([]byte{2})] = 42
t.Run("No invocations", func(t *testing.T) {
v.LoadScript([]byte{1})