Skip to content

Commit

Permalink
change exc
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Feb 6, 2024
1 parent e20885e commit ef4686d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vyper/semantics/analysis/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,7 @@ def validate_expected_type(node, expected_type):
if expected_type[0] == AddressT() and given_types[0] == BytesM_T(20):
suggestion_str = f" Did you mean {checksum_encode(node.value)}?"

# CMC 2022-02-14 maybe TypeMismatch would make more sense here
raise InvalidType(
raise TypeMismatch(
f"Expected {expected_str} but literal can only be cast as {given_str}.{suggestion_str}",
node,
)
Expand Down

0 comments on commit ef4686d

Please sign in to comment.