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

This commit is contained in:
Darioush Jalali authored and GitHub committed 2022-08-11 09:25:54 +02:00
1 parent c0cc6f6362
commit 366d2169fb
1 file changed
+1 -1
+1 -1
View File
@@ -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
}