Clang format

This commit is contained in:
pscott
2021-04-21 17:24:54 +02:00
parent 11701b6fa2
commit d5b32af95e
2 changed files with 5 additions and 2 deletions

View File

@@ -249,7 +249,9 @@ void finalizeParsing(bool direct) {
if (txContext.txType == LEGACY) { if (txContext.txType == LEGACY) {
id = u32_from_BE(txContext.content->v, txContext.content->vLength, true); id = u32_from_BE(txContext.content->v, txContext.content->vLength, true);
} else if (txContext.txType == EIP2930) { } else if (txContext.txType == EIP2930) {
id = u32_from_BE(txContext.content->chainID.value, txContext.content->chainID.length, false); id = u32_from_BE(txContext.content->chainID.value,
txContext.content->chainID.length,
false);
} else { } else {
PRINTF("TxType `%u` not supported while checking for chainID\n", txContext.txType); PRINTF("TxType `%u` not supported while checking for chainID\n", txContext.txType);
return; return;

View File

@@ -175,7 +175,8 @@ void ux_approve_tx(bool dataPresent) {
if (txContext.txType == LEGACY) { if (txContext.txType == LEGACY) {
id = u32_from_BE(txContext.content->v, txContext.content->vLength, true); id = u32_from_BE(txContext.content->v, txContext.content->vLength, true);
} else if (txContext.txType == EIP2930) { } else if (txContext.txType == EIP2930) {
id = u32_from_BE(txContext.content->chainID.value, txContext.content->chainID.length, false); id =
u32_from_BE(txContext.content->chainID.value, txContext.content->chainID.length, false);
} else { } else {
PRINTF("TxType `%u` not supported while preparing to approve tx\n", txContext.txType); PRINTF("TxType `%u` not supported while preparing to approve tx\n", txContext.txType);
THROW(0x6501); THROW(0x6501);