forked from TrueCloudLab/neoneo-go
core: simplify System.Contract.Call*
parameter handling
This commit is contained in:
parent
f40aba4cd0
commit
3c99393bef
2 changed files with 18 additions and 19 deletions
|
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue