We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 865c3e4 commit b6bfb8eCopy full SHA for b6bfb8e
1 file changed
python/src/trezorlib/tron.py
@@ -129,8 +129,9 @@ def sign_tx(
129
address_n: "Address",
130
) -> messages.TronSignature:
131
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
+ with session.interact() as ctx:
+ resp = ctx.call(tx)
+ messages.TronContractRequest.ensure_isinstance(resp)
+ resp = ctx.call(contract)
+ resp = messages.TronSignature.ensure_isinstance(resp)
137
+ return resp
0 commit comments