From 9d2c07d648aa7f95c02c6ec03c85d96f017450f5 Mon Sep 17 00:00:00 2001 From: pscott Date: Fri, 6 Aug 2021 16:46:03 +0200 Subject: [PATCH] remove double get_chainID fn --- src_features/signTx/logic_signTx.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src_features/signTx/logic_signTx.c b/src_features/signTx/logic_signTx.c index 9d6eb77..47960af 100644 --- a/src_features/signTx/logic_signTx.c +++ b/src_features/signTx/logic_signTx.c @@ -257,21 +257,6 @@ void prepareFeeDisplay() { sizeof(strings.common.maxFee)); } -uint32_t get_chainID() { - uint32_t chain_id = 0; - - if (txContext.txType == LEGACY) { - chain_id = u32_from_BE(txContext.content->v, txContext.content->vLength); - } else if (txContext.txType == EIP2930 || txContext.txType == EIP1559) { - chain_id = - u32_from_BE(tmpContent.txContent.chainID.value, tmpContent.txContent.chainID.length); - } else { - PRINTF("Txtype `%u` not supported while generating chainID\n", txContext.txType); - } - PRINTF("ChainID: %d\n", chain_id); - return chain_id; -} - void prepareNetworkDisplay() { char *name = get_network_name(); if (name == NULL) {