Fix contract data parsing

This commit is contained in:
BTChip github
2018-10-03 18:22:38 +02:00
parent e00a2ab312
commit 6ce175041a
2 changed files with 5 additions and 2 deletions

View File

@@ -1641,7 +1641,10 @@ customStatus_e customProcessor(txContext_t *context) {
blockSize = 4;
}
else {
blockSize = 32 - dataContext.rawDataContext.fieldOffset;
if (!N_storage.contractDetails) {
return CUSTOM_NOT_HANDLED;
}
blockSize = 32 - (dataContext.rawDataContext.fieldOffset % 32);
}
// Sanity check