Skip to content

Commit

Permalink
fixup! feat(cardano): ask detail lvl only on complex tx
Browse files Browse the repository at this point in the history
  • Loading branch information
obrusvit committed Oct 28, 2024
1 parent 32b8420 commit 8b5e087
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/apps/cardano/sign_tx/ordinary_signer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ def _validate_tx_init(self) -> None:

def _suite_tx_type(self) -> SuiteTxType:
msg = self.msg # local_cache_attribute
# NOTE: what about witness_request_count? It's 1 for simple send.
# NOTE: witness_request_count equals the number of inputs
# NOTE: what about required_signer?
if (
msg.minting_asset_groups_count > 0
or msg.witness_requests_count > 1
or msg.required_signers_count > 0
or msg.has_auxiliary_data
):
# transaction has more advanced features
Expand Down

0 comments on commit 8b5e087

Please sign in to comment.