Review external token reset policy
@@ -1557,6 +1557,7 @@ tokenDefinition_t* getKnownToken() {
#endif
if (currentTokenSet && (os_memcmp(tmpCtx.transactionContext.currentToken.address, tmpContent.txContent.destination, 20) == 0)) {
+ currentTokenSet = false;
return &tmpCtx.transactionContext.currentToken;
}
@@ -1940,7 +1941,6 @@ void handleSign(uint8_t p1, uint8_t p2, uint8_t *workBuffer, uint16_t dataLength
}
dataPresent = false;
tokenProvisioned = false;
- currentTokenSet = false;
initTx(&txContext, &sha3, &tmpContent.txContent, customProcessor, NULL);
}
else
