Unverified Commit 366d2169 authored by Darioush Jalali's avatar Darioush Jalali Committed by GitHub

accounts/abi: display name in "method/event not found" error (#25512)

parent c0cc6f63
......@@ -95,7 +95,7 @@ func (abi ABI) getArguments(name string, data []byte) (Arguments, error) {
args = event.Inputs
}
if args == nil {
return nil, errors.New("abi: could not locate named method or event")
return nil, fmt.Errorf("abi: could not locate named method or event: %s", name)
}
return args, nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment