Skip to content

Commit 425a5c3

Browse files
committed
add config.id to PrintOffersList
1 parent 22b2c7a commit 425a5c3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mytoncore/mytoncore.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2087,8 +2087,8 @@ def GetOffers(self):
20872087

20882088
# Create dict
20892089
# parser from: https://github.com/ton-blockchain/ton/blob/dab7ee3f9794db5a6d32c895dbc2564f681d9126/crypto/smartcont/config-code.fc#L607
2090-
item = dict()
2091-
item["config"] = dict()
2090+
item = Dict()
2091+
item["config"] = Dict()
20922092
item["hash"] = hash
20932093
item["endTime"] = subdata[0] # *expires*
20942094
item["critFlag"] = subdata[1] # *critical*

mytonctrl/mytonctrl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ def PrintOffersList(ton, args):
11041104
print(text)
11051105
else:
11061106
table = list()
1107-
table += [["Hash", "Votes", "W/L", "Approved", "Is passed"]]
1107+
table += [["Hash", "Config", "Votes", "W/L", "Approved", "Is passed"]]
11081108
for item in data:
11091109
hash = item.get("hash")
11101110
votedValidators = len(item.get("votedValidators"))
@@ -1120,7 +1120,7 @@ def PrintOffersList(ton, args):
11201120
isPassed = bcolors.green_text("true")
11211121
if isPassed == False:
11221122
isPassed = bcolors.red_text("false")
1123-
table += [[hash, votedValidators, wl, approvedPercent_text, isPassed]]
1123+
table += [[hash, item.config.id, votedValidators, wl, approvedPercent_text, isPassed]]
11241124
print_table(table)
11251125
#end define
11261126

0 commit comments

Comments
 (0)