Skip to content

Commit 2742f7b

Browse files
committed
fix offers gc
1 parent cbdd56c commit 2742f7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mytoncore/mytoncore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2968,7 +2968,7 @@ def WriteBookmarkData(self, bookmark):
29682968
def offers_gc(self, save_offers):
29692969
current_offers = self.GetOffers()
29702970
current_offers_hashes = [offer.get("hash") for offer in current_offers]
2971-
for offer in save_offers:
2971+
for offer in list(save_offers.keys()):
29722972
if offer not in current_offers_hashes:
29732973
save_offers.pop(offer)
29742974
return save_offers

0 commit comments

Comments
 (0)