Skip to content

Commit

Permalink
change toString and read function names
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj-RR1 committed Aug 29, 2023
1 parent 9e0ba01 commit 7f5e79e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/src/substrate_dispatch_V2.c
Original file line number Diff line number Diff line change
Expand Up @@ -5495,7 +5495,7 @@ parser_error_t _getMethod_ItemValue_V2(
outValue, outValueLen,
pageIdx, pageCount);
case 2: /* council_set_members_V2 - old_count */;
return _toStringCompactu32(
return _toStringMemberCount_V2(
&m->basic.council_set_members_V2.old_count,
outValue, outValueLen,
pageIdx, pageCount);
Expand Down
8 changes: 4 additions & 4 deletions app/src/substrate_types_V2.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ parser_error_t _readConfigOpPerbill_V2(parser_context_t* c, pd_ConfigOpPerbill_V
case 2: // Remove
break;
case 1:
CHECK_ERROR(_readPerbill(c, &v->set))
CHECK_ERROR(_readPerbill_V2(c, &v->set))
break;
default:
return parser_unexpected_value;
Expand All @@ -195,7 +195,7 @@ parser_error_t _readConfigOpPercent_V2(parser_context_t* c, pd_ConfigOpPercent_V
case 2: // Remove
break;
case 1:
CHECK_ERROR(_readPercent(c, &v->set))
CHECK_ERROR(_readPercent_V2(c, &v->set))
break;
default:
return parser_unexpected_value;
Expand Down Expand Up @@ -1072,7 +1072,7 @@ parser_error_t _toStringConfigOpPerbill_V2(
snprintf(outValue, outValueLen, "Noop");
break;
case 1:
CHECK_ERROR(_toStringPerbill(&v->set, outValue, outValueLen, pageIdx, pageCount))
CHECK_ERROR(_toStringPerbill_V2(&v->set, outValue, outValueLen, pageIdx, pageCount))
break;
case 2:
snprintf(outValue, outValueLen, "Remove");
Expand Down Expand Up @@ -1945,7 +1945,7 @@ parser_error_t _toStringOptionCompactu128_V2(

*pageCount = 1;
if (v->some > 0) {
CHECK_ERROR(_toStringCompactu128_V2(
CHECK_ERROR(_toStringCompactu128(
&v->contained,
outValue, outValueLen,
pageIdx, pageCount));
Expand Down

0 comments on commit 7f5e79e

Please sign in to comment.