diff --git a/legacy/firmware/ethereum.c b/legacy/firmware/ethereum.c index d422f11dbeb..4b1cd7560a0 100644 --- a/legacy/firmware/ethereum.c +++ b/legacy/firmware/ethereum.c @@ -386,10 +386,6 @@ static void layoutEthereumFee(const uint8_t *value, uint32_t value_len, */ static bool ethereum_signing_check(const EthereumSignTx *msg) { - if (!msg->has_gas_price || !msg->has_gas_limit) { - return false; - } - size_t tolen = msg->has_to ? strlen(msg->to) : 0; if (tolen != 42 && tolen != 40 && tolen != 0) { @@ -589,7 +585,7 @@ void ethereum_signing_txack(const EthereumTxAck *tx) { return; } - if (data_left > 0 && (!tx->has_data_chunk || tx->data_chunk.size == 0)) { + if (data_left > 0 && tx->data_chunk.size == 0) { fsm_sendFailure(FailureType_Failure_DataError, _("Empty data chunk received")); ethereum_signing_abort(); diff --git a/legacy/firmware/fsm_msg_ethereum.h b/legacy/firmware/fsm_msg_ethereum.h index 82d4fa4d503..f0eee1ebb0d 100644 --- a/legacy/firmware/fsm_msg_ethereum.h +++ b/legacy/firmware/fsm_msg_ethereum.h @@ -155,9 +155,6 @@ void fsm_msgEthereumSignMessage(const EthereumSignMessage *msg) { } void fsm_msgEthereumVerifyMessage(const EthereumVerifyMessage *msg) { - CHECK_PARAM(msg->has_address, _("No address provided")); - CHECK_PARAM(msg->has_message, _("No message provided")); - if (ethereum_message_verify(msg) != 0) { fsm_sendFailure(FailureType_Failure_DataError, _("Invalid signature")); return;