Share network ticker with plugins (#205)
* Add network ticker to queryContractUI for plugins use * Update sdk deps * Bump version 1.9.11 * Fix blockSize error when bytes is optimized by EVM Co-authored-by: pscott <scott.piriou@ledger.fr>
This commit is contained in:
@@ -98,10 +98,10 @@ customStatus_e customProcessor(txContext_t *context) {
|
||||
blockSize = 32 - (dataContext.tokenContext.fieldOffset % 32);
|
||||
}
|
||||
|
||||
// Sanity check
|
||||
// If the last parameter is of type `bytes` then we might have an
|
||||
// edge case where the data is not a multiple of 32. Set `blockSize` accordingly
|
||||
if ((context->currentFieldLength - fieldPos) < blockSize) {
|
||||
PRINTF("Unconsistent data\n");
|
||||
return CUSTOM_FAULT;
|
||||
blockSize = context->currentFieldLength - fieldPos;
|
||||
}
|
||||
|
||||
copySize = (context->commandLength < blockSize ? context->commandLength : blockSize);
|
||||
|
||||
Reference in New Issue
Block a user