Add printf for txtype; Fix txtype init

This commit is contained in:
pscott
2021-08-04 17:42:09 +02:00
parent 63467a4145
commit d04dcd8dc6
2 changed files with 1 additions and 3 deletions

View File

@@ -31,10 +31,7 @@ void initTx(txContext_t *context,
txContent_t *content,
ustreamProcess_t customProcessor,
void *extra) {
uint8_t save = context->txType;
memset(context, 0, sizeof(txContext_t));
context->txType = save;
context->sha3 = sha3;
context->content = content;
context->customProcessor = customProcessor;

View File

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