Handle to: destination length to detect a null contract address

This commit is contained in:
BTChip 2016-10-17 23:35:55 +02:00
parent 40df08c386
commit 893c9820e4
2 changed files with 2 additions and 0 deletions

View File

@ -202,6 +202,7 @@ static void processTo(txContext_t *context) {
copySize);
}
if (context->currentFieldPos == context->currentFieldLength) {
context->content->destinationLength = context->currentFieldLength;
context->currentField++;
context->processingField = false;
}

View File

@ -51,6 +51,7 @@ typedef struct txContent_t {
txInt256_t startgas;
txInt256_t value;
uint8_t destination[20];
uint8_t destinationLength;
} txContent_t;
typedef struct txContext_t {