Skip to content

Commit 9d7bc61

Browse files
committed
fix
1 parent 8af9b98 commit 9d7bc61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mytoncore/mytoncore.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,9 +1337,9 @@ def GetStake(self, account, args=None):
13371337
else:
13381338
for validator in vconfig.validators:
13391339
# Check validator is in active period
1340-
if validator.election_date - config15["elections_end_before"] < get_timestamp() < validator.expire_at:
1340+
if validator.election_date - config15["electionsEndBefore"] < get_timestamp() < validator.expire_at:
13411341
# Check validator is elected
1342-
if self.GetAdnlAddr() in self.GetValidatorsList():
1342+
if self.GetAdnlAddr() in [x["adnlAddr"] for x in self.GetValidatorsList()]:
13431343
stake = int(account.balance*sp)
13441344
break
13451345
else:

0 commit comments

Comments
 (0)