Skip to content

Commit

Permalink
CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
nagdahimanshu committed May 2, 2024
1 parent a966223 commit a29915c
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/handle_provide_parameter.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,26 @@ static void handle_lock_ids_array(ethPluginProvideParameter_t *msg, context_t *c
context->next_param = LOCK_ID;
break;
case LOCK_ID:
if (counter == context->lisk.body.reward.lock_ids_len) {
context->next_param = NONE;
}
copy_parameter(context->lisk.body.reward.lock_id[counter].value,
msg->parameter,
INT256_LENGTH);
if (counter == context->lisk.body.reward.lock_ids_len - 1) {
counter = 0;
context->next_param = NONE;
} else {
if (context->lisk.body.reward.lock_ids_len > 1) {
context->next_param = LOCK_ID_NEXT;
counter++;
} else {
context->next_param = NONE;
}
break;
case LOCK_ID_NEXT:
copy_parameter(context->lisk.body.reward.lock_id[counter].value,
msg->parameter,
INT256_LENGTH);
counter++;
context->next_param = LOCK_ID;
break;
case NONE:
break;
default:
Expand Down

0 comments on commit a29915c

Please sign in to comment.