remove double get_chainID fn

This commit is contained in:
pscott
2021-08-06 16:46:03 +02:00
parent c5fb10dd47
commit 9d2c07d648

View File

@@ -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) {