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))
|
||||
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
|
||||
if !hasReturn {
|
||||
|
|
Loading…
Reference in a new issue