core: simplify System.Contract.Call* parameter handling

This commit is contained in:
Evgenii Stratonikov 2020-07-29 11:24:06 +03:00
parent f40aba4cd0
commit 3c99393bef
2 changed files with 18 additions and 19 deletions

View file

@ -443,7 +443,14 @@ func TestContractCall(t *testing.T) {
for i := range args {
v.Estack().PushVal(args[i])
}
require.Error(t, contractCall(ic, v))
// interops can both return error and panic,
// we don't care which kind of error has occured
require.Panics(t, func() {
err := contractCall(ic, v)
if err != nil {
panic(err)
}
})
}
}