Skip to content

Commit

Permalink
update per pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-kothari authored Mar 14, 2022
1 parent 9c56477 commit a846ed1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pretix_eth/network/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ def __init__(self):
self._set_other_token_constants()

def _validate_class_variables(self):
if not (
self.NETWORK_IDENTIFIER
and self.NETWORK_VERBOSE_NAME
and self.NETWORK_UNISWAP_NAME
and self.TOKEN_SYMBOL
):
if not all ([
self.NETWORK_IDENTIFIER,
self.NETWORK_VERBOSE_NAME,
self.NETWORK_UNISWAP_NAME,
self.TOKEN_SYMBOL
]):
raise ValueError(
"Please provide network_identifier, verbose name, "
+ "uniswap url name, token symbol for this class"
Expand Down

0 comments on commit a846ed1

Please sign in to comment.