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

pull/25515/head
Darioush Jalali 2 years ago committed by GitHub
parent c0cc6f6362
commit 366d2169fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      accounts/abi/abi.go

@ -95,7 +95,7 @@ func (abi ABI) getArguments(name string, data []byte) (Arguments, error) {
args = event.Inputs args = event.Inputs
} }
if args == nil { 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 return args, nil
} }

Loading…
Cancel
Save