Add nonce display settings ; nonce is always displayed

This commit is contained in:
pscott
2021-02-05 17:33:12 +01:00
parent 734b200ba1
commit b2d5b85a2f
8 changed files with 60 additions and 5 deletions

View File

@@ -117,9 +117,10 @@ static void processNonce(txContext_t *context) {
if (context->currentFieldPos < context->currentFieldLength) {
uint32_t copySize =
MIN(context->commandLength, context->currentFieldLength - context->currentFieldPos);
copyTxData(context, NULL, copySize);
copyTxData(context, context->content->nonce.value, copySize);
}
if (context->currentFieldPos == context->currentFieldLength) {
context->content->nonce.length = context->currentFieldLength;
context->currentField++;
context->processingField = false;
}

View File

@@ -69,6 +69,7 @@ typedef struct txContent_t {
txInt256_t gasprice;
txInt256_t startgas;
txInt256_t value;
txInt256_t nonce;
uint8_t destination[20];
uint8_t destinationLength;
uint8_t v[4];