Fix parsing for a contract call with no data
@@ -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;
