-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Stanislav-Povolotsky/master
More accurate counting of available space during MessageAny serialization
- Loading branch information
Showing
3 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setuptools.setup( | ||
name="pytoniq-core", | ||
version="0.1.28", | ||
version="0.1.29", | ||
author="Maksim Kurbatov", | ||
author_email="[email protected]", | ||
description="TON Blockchain SDK", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from pytoniq_core.tlb import MessageAny, ExternalMsgInfo, InternalMsgInfo, CurrencyCollection | ||
from pytoniq_core.tlb.block import ExtraCurrencyCollection | ||
from pytoniq_core.boc import Address, Cell, Builder | ||
|
||
from pytoniq_core.tlb.account import StateInit | ||
|
||
def test_ser(): | ||
test_addr = Address("EQDLjulz89Z90ReVL-a9TTKc5ON0PVhCHVGx3pkvzX5Qzt3S") | ||
info = ExternalMsgInfo(test_addr, test_addr, 0) | ||
body = Builder().store_bits([1,] * 482).end_cell() | ||
message = MessageAny(info = info, init = None, body = body) | ||
message.serialize() |