mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-24 19:25:21 +00:00
core: specify method not found
call error
It's useful for debugging and external users.
This commit is contained in:
parent
4ab18d084a
commit
1a32fcb2dc
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ func Call(ic *interop.Context) error {
|
||||||
}
|
}
|
||||||
md := cs.Manifest.ABI.GetMethod(method, len(args))
|
md := cs.Manifest.ABI.GetMethod(method, len(args))
|
||||||
if md == nil {
|
if md == nil {
|
||||||
return errors.New("method not found")
|
return fmt.Errorf("method not found: %s/%d", method, len(args))
|
||||||
}
|
}
|
||||||
hasReturn := md.ReturnType != smartcontract.VoidType
|
hasReturn := md.ReturnType != smartcontract.VoidType
|
||||||
if !hasReturn {
|
if !hasReturn {
|
||||||
|
|
Loading…
Reference in a new issue