Skip to content

Commit 815c671

Browse files
fixed rungetmethod
1 parent 2bb5989 commit 815c671

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ton-http-api/pyTON/manager.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,10 @@ async def get_token_data(self, address: str):
334334
return await self.dispatch_request('get_token_data', address)
335335

336336
async def raw_run_method(self, address, method, stack_data, seqno):
337-
return await self.dispatch_request('raw_run_method', address, method, stack_data, seqno)
337+
try:
338+
return await self.dispatch_request('raw_run_method', address, method, stack_data, seqno)
339+
except TonlibError:
340+
return await self.dispatch_archival_request('raw_run_method', address, method, stack_data, seqno)
338341

339342
async def _send_message(self, serialized_boc, method):
340343
ls_index_list = self.select_worker(count=4)

0 commit comments

Comments
 (0)