Skip to content

Commit aecea1b

Browse files
committed
Clear 'CoinType' instances before creating new ones. This is to
cover an edge case where after a firmware update KKClient doesn't try to load the same coin types from previous session. This is not desired since update firmware doesn't have to support the same coins as previous version which would cause loading issues.
1 parent ba21c73 commit aecea1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Background.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14780,6 +14780,7 @@ var _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
1478014780
loadable_coins = r.intersection(firmware_coins, client_coins);
1478114781
var configByName = r.keyBy(e.config, 'name'),
1478214782
featureByName = r.keyBy(featureCoins, 'coin_name');
14783+
e.clearList()
1478314784
loadable_coins.forEach(function(i)
1478414785
{
1478514786
e.makeInstance(featureByName[i], configByName[i])

0 commit comments

Comments
 (0)