Skip to content

Commit b712acc

Browse files
committed
bugfix
1 parent e7ac528 commit b712acc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mytoncore/mytoncore.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3158,12 +3158,14 @@ def SetSettings(self, name, data):
31583158
def migrate_to_modes(self):
31593159
usePool = self.local.db.get('usePool')
31603160
if usePool is not None:
3161-
self.enable_mode('nominator-pool')
3161+
if usePool:
3162+
self.enable_mode('nominator-pool')
31623163
self.local.db.pop('usePool')
31633164

31643165
useController = self.local.db.get('useController')
31653166
if useController is not None:
3166-
self.enable_mode('liquid-staking')
3167+
if useController:
3168+
self.enable_mode('liquid-staking')
31673169
self.local.db.pop('useController')
31683170
self.local.save()
31693171

0 commit comments

Comments
 (0)