Add printf for txtype; Fix txtype init
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user