From 34835685430b0f2ef1f3d63a5a153a632665cff8 Mon Sep 17 00:00:00 2001 From: Maksim Kurbatov <94808996+yungwine@users.noreply.github.com> Date: Tue, 16 Jan 2024 23:18:15 +0700 Subject: [PATCH] Store snake string (#5) * improve store_snake_string * update version --- pytoniq_core/boc/builder.py | 2 ++ setup.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pytoniq_core/boc/builder.py b/pytoniq_core/boc/builder.py index abe2a8b..12f57fa 100644 --- a/pytoniq_core/boc/builder.py +++ b/pytoniq_core/boc/builder.py @@ -150,6 +150,8 @@ def store_snake_bytes(self, value: bytes): if len(value) == 0: return self i = self.available_bytes + if len(value) <= i: + return self.store_bytes(value) return self.store_bytes(value[:i]).store_ref(Builder().store_snake_bytes(value[i:]).end_cell()) def store_snake_string(self, value: str, need_prefix: bool = False): diff --git a/setup.py b/setup.py index f778e7b..11e5dc2 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="pytoniq-core", - version="0.1.25", + version="0.1.26", author="Maksim Kurbatov", author_email="cyrbatoff@gmail.com", description="TON Blockchain SDK",