Skip to content

Commit ece72cf

Browse files
committed
Fix data getter
1 parent 94c1efe commit ece72cf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def finalize_options(self):
3131

3232
setup(
3333
name="tonpy" if not IS_DEV else "tonpy-dev",
34-
version="0.0.0.1.4b0" if not IS_DEV else "0.0.0.6.0a1",
34+
version="0.0.0.1.4b0" if not IS_DEV else "0.0.0.6.0b1",
3535
author="Disintar LLP",
3636
author_email="andrey@head-labs.com",
3737
description="Types / API for TON blockchain",

src/tonpy/tvm/tvm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def __init__(self, log_level: int = 0,
3333
enable_stack_dump)
3434
self.code_hash = code.get_hash()
3535
self.data_hash = data.get_hash() if data else None
36+
self.original_data = data
3637
self.vm_steps_detailed: Optional[List[StepInfo]] = None
3738
self.enable_stack_dump = enable_stack_dump
3839
self.c7 = None
@@ -215,7 +216,7 @@ def code(self, value):
215216

216217
@property
217218
def data(self) -> Cell:
218-
return Cell(self.tvm.data)
219+
return self.original_data
219220

220221
@data.setter
221222
def data(self, value):

0 commit comments

Comments
 (0)