Fix parsing for a contract call with no data

This commit is contained in:
BTChip github
2020-09-25 23:00:57 +02:00
committed by TamtamHero
parent d0311933c3
commit ef3c5fa27b

View File

@@ -50,6 +50,10 @@ customStatus_e customProcessor(txContext_t *context) {
dataContext.tokenContext.fieldIndex = 0;
dataContext.tokenContext.fieldOffset = 0;
copyTxData(context, NULL, 4);
if (context->currentFieldLength == 4) {
dataContext.tokenContext.fieldIndex++;
return CUSTOM_HANDLED;
}
}
}
uint32_t blockSize;