Handle to: destination length to detect a null contract address
This commit is contained in:
parent
40df08c386
commit
893c9820e4
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue