From b0b286aafe8733b3503f7a8c5099b4322cbedcee Mon Sep 17 00:00:00 2001 From: matejcik Date: Mon, 26 Aug 2019 14:28:05 +0200 Subject: [PATCH] core/ethereum: fix typo in wanchain detection Reason it worked before: this function would fail to find a network for wanchain, but the `network` value is only used to determine if RSKIP60 should be used. That is almost never the case, so missing network info did not cause an issue. --- core/src/apps/ethereum/networks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/apps/ethereum/networks.py b/core/src/apps/ethereum/networks.py index 9b7fd7ebe6..702e33c710 100644 --- a/core/src/apps/ethereum/networks.py +++ b/core/src/apps/ethereum/networks.py @@ -30,7 +30,7 @@ def by_chain_id(chain_id: int) -> Optional["NetworkInfo"]: def by_slip44(slip44: int) -> Optional["NetworkInfo"]: if slip44 == SLIP44_WANCHAIN: # Coerce to Ethereum - slip44 == SLIP44_ETHEREUM + slip44 = SLIP44_ETHEREUM for n in NETWORKS: if n.slip44 == slip44: return n