Skip to content

Commit

Permalink
accounts/abi: display name in "method/event not found" error (ethereu…
Browse files Browse the repository at this point in the history
  • Loading branch information
darioush authored and blakehhuynh committed Oct 3, 2022
1 parent 37b9060 commit 1e4b779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounts/abi/abi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1e4b779

Please sign in to comment.