1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-21 05:48:23 +00:00

Set default values to client functions parameters

This commit is contained in:
gabrielkerekes 2020-07-28 15:33:12 +02:00 committed by Pavol Rusnak
parent fce7a001af
commit c29d297a77

View File

@ -175,9 +175,9 @@ def create_withdrawal(withdrawal) -> messages.CardanoTxWithdrawalType:
def get_address( def get_address(
client, client,
address_parameters: messages.CardanoAddressParametersType, address_parameters: messages.CardanoAddressParametersType,
protocol_magic: int, protocol_magic: int = PROTOCOL_MAGICS["mainnet"],
network_id: int, network_id: int = NETWORK_IDS["mainnet"],
show_display=False, show_display: bool = False,
) -> messages.CardanoAddress: ) -> messages.CardanoAddress:
return client.call( return client.call(
messages.CardanoGetAddress( messages.CardanoGetAddress(
@ -201,11 +201,11 @@ def sign_tx(
outputs: List[messages.CardanoTxOutputType], outputs: List[messages.CardanoTxOutputType],
fee: int, fee: int,
ttl: int, ttl: int,
certificates: List[messages.CardanoTxCertificateType], certificates: List[messages.CardanoTxCertificateType] = (),
withdrawals: List[messages.CardanoTxWithdrawalType], withdrawals: List[messages.CardanoTxWithdrawalType] = (),
metadata_hash: bytes, metadata_hash: bytes = None,
protocol_magic: int, protocol_magic: int = PROTOCOL_MAGICS["mainnet"],
network_id: int, network_id: int = NETWORK_IDS["mainnet"],
) -> messages.CardanoSignedTx: ) -> messages.CardanoSignedTx:
response = client.call( response = client.call(
messages.CardanoSignTx( messages.CardanoSignTx(