Skip to content

Commit

Permalink
Small ABI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tvorogme committed Oct 17, 2024
1 parent a0f0dc0 commit b634bef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def finalize_options(self):

setup(
name="tonpy" if not IS_DEV else "tonpy-dev",
version="0.0.0.1.2c0" if not IS_DEV else "0.0.0.4.9c1",
version="0.0.0.1.2c0" if not IS_DEV else "0.0.0.5.0a1",
author="Disintar LLP",
author_email="andrey@head-labs.com",
description="Types / API for TON blockchain",
Expand Down
7 changes: 6 additions & 1 deletion src/tonpy/abi/getter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from traceback import format_exc

from tonpy import StackEntry, add_tlb
from tonpy.tvm import TVM
from loguru import logger
Expand Down Expand Up @@ -213,6 +215,9 @@ def get_columns(self):
return tmp

def parse_getters(self, tvm: TVM, tlb_sources) -> dict:
if self.method_args and len(self.method_args) > 0:
return {}

tvm.set_stack([self.method_id])
stack = tvm.run(allow_non_success=True, unpack_stack=False)

Expand All @@ -229,6 +234,6 @@ def parse_getters(self, tvm: TVM, tlb_sources) -> dict:
try:
tmp.update(getter.parse_stack_item(stack_entry, tlb_sources))
except Exception as e:
logger.error(f"Can't parse {getter}: {e}")
logger.error(f"Can't parse {getter}: {e}, {format_exc()}")

return tmp

0 comments on commit b634bef

Please sign in to comment.