From 4365dfbb7203a47189936b9bdf33dcf1cf0cc1aa Mon Sep 17 00:00:00 2001 From: hackyminer Date: Mon, 23 Jul 2018 07:39:15 +0900 Subject: [PATCH] support full 32bit chain_id --- firmware/ethereum.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/firmware/ethereum.c b/firmware/ethereum.c index a5cf7a32a..58e3a1cbe 100644 --- a/firmware/ethereum.c +++ b/firmware/ethereum.c @@ -36,9 +36,6 @@ #include "memzero.h" #include "messages.pb.h" -/* maximum supported chain id. v must fit in an uint32_t. */ -#define MAX_CHAIN_ID 2147483630 - static bool ethereum_signing = false; static uint32_t data_total, data_left; static EthereumTxRequest msg_tx_request; @@ -461,7 +458,7 @@ void ethereum_signing_init(EthereumSignTx *msg, const HDNode *node) /* eip-155 chain id */ if (msg->has_chain_id) { - if (msg->chain_id < 1 || msg->chain_id > MAX_CHAIN_ID) { + if (msg->chain_id < 1) { fsm_sendFailure(Failure_FailureType_Failure_DataError, _("Chain Id out of bounds")); ethereum_signing_abort(); return;