mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-08 05:54:29 +00:00
accounts/abi: display name in "method/event not found" error (#25512)
This commit is contained in:
parent
78a35f1dc3
commit
08fedbb503
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue