vm: omit context parameter from Call()

It's not used and should not be used to switch from contract to contract.
This commit is contained in:
Roman Khimov 2021-11-19 17:15:30 +03:00
parent 7b713762be
commit 765235eca3
5 changed files with 6 additions and 6 deletions

View file

@ -89,7 +89,7 @@ func invokeMethod(t *testing.T, method string, script []byte, v *vm.VM, di *comp
v.LoadScriptWithFlags(script, callflag.All)
v.Context().Jump(mainOffset)
if initOffset >= 0 {
v.Call(v.Context(), initOffset)
v.Call(initOffset)
}
}