Skip to content

Commit f9353b7

Browse files
committed
improves
1 parent f54ded0 commit f9353b7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mytoncore/mytoncore.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2956,12 +2956,10 @@ def GetVotedComplaints(self, election_id: int = None):
29562956
complaints = self.GetComplaints(election_id)
29572957
result = {}
29582958
validator_index = self.GetValidatorIndex()
2959-
for complaint in complaints.values():
2959+
for pseudohash, complaint in complaints.items():
29602960
votedValidators = complaint.get("votedValidators")
29612961
if validator_index in votedValidators:
2962-
pubkey = complaint.get("pubkey")
2963-
election_id = complaint.get("electionId")
2964-
result[pubkey + str(election_id)] = complaint
2962+
result[pseudohash] = complaint
29652963
return result
29662964
#end define
29672965

0 commit comments

Comments
 (0)