Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Commit

Permalink
cardano: signing returns CardanoSignedTx
Browse files Browse the repository at this point in the history
  • Loading branch information
tsusanka committed Aug 21, 2018
1 parent 4305c1d commit e657397
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/apps/cardano/sign_transaction.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from trezor import log, ui, wire
from trezor.crypto import base58, bip32, hashlib
from trezor.crypto.curve import ed25519
from trezor.messages.CardanoSignedTx import CardanoSignedTx
from trezor.messages.CardanoTxRequest import CardanoTxRequest
from trezor.messages.MessageType import CardanoTxAck
from trezor.ui.text import BR
Expand Down Expand Up @@ -91,7 +92,7 @@ async def cardano_sign_transaction(ctx, msg):
# sign the transaction bundle and prepare the result
transaction = Transaction(msg.inputs, msg.outputs, transactions, root_node)
tx_body, tx_hash = transaction.serialise_tx()
tx = CardanoTxRequest(tx_body=tx_body, tx_hash=tx_hash)
tx = CardanoSignedTx(tx_body=tx_body, tx_hash=tx_hash)

except ValueError as e:
if __debug__:
Expand Down

0 comments on commit e657397

Please sign in to comment.