Increase size of V

This commit is contained in:
pscott
2021-08-27 14:47:59 +02:00
parent 89eba39c63
commit f2ff741767
23 changed files with 317 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ void handleSign(uint8_t p1,
} else {
txContext.txType = LEGACY;
}
PRINTF("TxType: %d\n", txContext.txType);
PRINTF("TxType: %x\n", txContext.txType);
} else if (p1 != P1_MORE) {
THROW(0x6B00);
}

View File

@@ -267,6 +267,7 @@ void prepareNetworkDisplay() {
} else {
// Network name found, simply copy it.
strlcpy(strings.common.network_name, name, sizeof(strings.common.network_name));
PRINTF("COPIED\n");
}
}
@@ -452,9 +453,14 @@ void finalizeParsing(bool direct) {
// Compute maximum fee
prepareFeeDisplay();
PRINTF("Fees displayed: %s\n", strings.common.maxFee);
// Prepare chainID field
prepareNetworkDisplay();
PRINTF("Network bytes: %.*H\n",
sizeof(strings.common.network_name),
strings.common.network_name);
PRINTF("Network: %s\n", strings.common.network_name);
bool no_consent;

View File

@@ -224,6 +224,7 @@ void ux_approve_tx(bool fromPlugin) {
uint64_t chain_id = get_chain_id();
if (chainConfig->chainId == ETHEREUM_MAINNET_CHAINID && chain_id != chainConfig->chainId) {
PRINTF("ADDED GET CHAIN ID\n");
ux_approval_tx_flow[step++] = &ux_approval_network_step;
}