Skip to content

Error on name command is weird when not an address #49

Description

@antazoey

I accidentally typed:

ape ens name resolve

and it spits out

  File "/Users/antazoey/virtualenvs/apedev13/lib/python3.13/site-packages/eth_utils/conversions.py", line 195, in hexstr_if_str
    raise ValueError(
    ...<2 lines>...
    )
ValueError: when sending a str, it must be a hex string. Got: 'resolve'

should be a user-facing click error.
name cmd

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions