Skip to content

Commit a5f7eee

Browse files
committed
fix: reduce long memo test to 120 chars (max_size:121 in nanopb options)
1 parent 13233fa commit a5f7eee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_msg_ton_signtx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,13 @@ def test_ton_sign_with_empty_memo(self):
227227
self.assertEqual(len(resp.signature), 64)
228228

229229
def test_ton_sign_with_long_memo(self):
230-
"""Memo of 255 characters (near max 256) should be accepted."""
230+
"""Memo of 120 characters (near max_size 121) should be accepted."""
231231
self.requires_fullFeature()
232232
self.setup_mnemonic_allallall()
233233

234234
dest_addr = make_ton_address()
235235
raw_tx = hashlib.sha256(b'test-ton-long-memo').digest() * 2 # 64 bytes
236-
long_memo = "A" * 255
236+
long_memo = "A" * 120
237237

238238
msg = ton_messages.TonSignTx(
239239
address_n=parse_path(TON_PATH),

0 commit comments

Comments
 (0)