Skip to content

Commit b6bfb8e

Browse files
committed
feat(python): use THP ACK piggybacking in Tron signing
[no changelog]
1 parent 865c3e4 commit b6bfb8e

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

python/src/trezorlib/tron.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ def sign_tx(
129129
address_n: "Address",
130130
) -> messages.TronSignature:
131131
tx.address_n = address_n
132-
resp = session.call(tx)
133-
messages.TronContractRequest.ensure_isinstance(resp)
134-
resp = session.call(contract)
135-
resp = messages.TronSignature.ensure_isinstance(resp)
136-
return resp
132+
with session.interact() as ctx:
133+
resp = ctx.call(tx)
134+
messages.TronContractRequest.ensure_isinstance(resp)
135+
resp = ctx.call(contract)
136+
resp = messages.TronSignature.ensure_isinstance(resp)
137+
return resp

0 commit comments

Comments
 (0)