Skip to content

Commit

Permalink
Use a constant instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
palango committed Oct 7, 2021
1 parent e3cc1f7 commit 9c1b997
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/raiden_libs/blockchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ def parse_token_network_event(event: dict) -> Optional[Event]:

# `DeprecationSwitch` isn't used currently, but needs to be checked so we can have
# `channel_identifier` in `common_infos`
# FIXME: use value from ChannelEvent as soon as PR is merged
# https://github.com/raiden-network/raiden-contracts/pull/1389
if event_name == "DeprecationSwitch":
if event_name == ChannelEvent.DEPRECATED:
return None

common_infos = dict(
Expand Down

0 comments on commit 9c1b997

Please sign in to comment.