Skip to content

Commit

Permalink
swap case numbers and module idx
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj-RR1 committed Nov 27, 2023
1 parent 7ef0d56 commit 277192b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions app/src/substrate_dispatch_V2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1765,10 +1765,10 @@ parser_error_t _readMethod_V2(
case 6918: /* module 27 call 6 */
CHECK_ERROR(_readMethod_proxy_announce_V2(c, &method->basic.proxy_announce_V2))
break;
case 6919: /* module 27 call 7 */
case 6920: /* module 27 call 8 */
CHECK_ERROR(_readMethod_proxy_reject_announcement_V2(c, &method->basic.proxy_reject_announcement_V2))
break;
case 6920: /* module 27 call 8 */
case 6919: /* module 27 call 7 */
CHECK_ERROR(_readMethod_proxy_remove_announcement_V2(c, &method->basic.proxy_remove_announcement_V2))
break;
case 6921: /* module 27 call 9 */
Expand Down Expand Up @@ -2266,9 +2266,9 @@ const char *_getMethod_Name_V2_ParserFull(uint16_t callPrivIdx)
return STR_ME_KILL_ANONYMOUS;
case 6918: /* module 27 call 6 */
return STR_ME_ANNOUNCE;
case 6919: /* module 27 call 7 */
return STR_ME_REJECT_ANNOUNCEMENT;
case 6920: /* module 27 call 8 */
return STR_ME_REJECT_ANNOUNCEMENT;
case 6919: /* module 27 call 7 */
return STR_ME_REMOVE_ANNOUNCEMENT;
case 6921: /* module 27 call 9 */
return STR_ME_PROXY_ANNOUNCED;
Expand Down Expand Up @@ -2634,10 +2634,10 @@ uint8_t _getMethod_NumItems_V2(uint8_t moduleIdx, uint8_t callIdx)
return 5;
case 6918: /* module 27 call 6 */
return 2;
case 6919: /* module 27 call 7 */
return 2;
case 6920: /* module 27 call 8 */
return 2;
case 6919: /* module 27 call 7 */
return 2;
case 6921: /* module 27 call 9 */
return 4;
case 7680: /* module 30 call 0 */
Expand Down Expand Up @@ -3848,7 +3848,7 @@ const char *_getMethod_ItemName_V2(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
case 6919: /* module 27 call 7 */
case 6920: /* module 27 call 8 */
switch (itemIdx)
{
case 0:
Expand All @@ -3858,7 +3858,7 @@ const char *_getMethod_ItemName_V2(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
case 6920: /* module 27 call 8 */
case 6919: /* module 27 call 7 */
switch (itemIdx)
{
case 0:
Expand Down Expand Up @@ -6084,7 +6084,7 @@ parser_error_t _getMethod_ItemValue_V2(
default:
return parser_no_data;
}
case 6919: /* module 27 call 7 */
case 6920: /* module 27 call 8 */
switch (itemIdx)
{
case 0: /* proxy_reject_announcement_V2 - delegate */;
Expand All @@ -6100,7 +6100,7 @@ parser_error_t _getMethod_ItemValue_V2(
default:
return parser_no_data;
}
case 6920: /* module 27 call 8 */
case 6919: /* module 27 call 7 */
switch (itemIdx)
{
case 0: /* proxy_remove_announcement_V2 - real */;
Expand Down Expand Up @@ -7230,8 +7230,8 @@ bool _getMethod_IsNestingSupported_V2(uint8_t moduleIdx, uint8_t callIdx)
case 6916: // Proxy:Anonymous
case 6917: // Proxy:Kill anonymous
case 6918: // Proxy:announce
case 6919: // Proxy: Reject announcement
case 6920: // Proxy: Remove announcement
case 6920: // Proxy: Reject announcement
case 6919: // Proxy: Remove announcement
case 6921: // Proxy:Proxy announced
case 8192: // TreasuryReward:Set current payout
case 8193: // TreasuryReward:Set minting interval
Expand Down
4 changes: 2 additions & 2 deletions app/src/substrate_methods_V2.h
Original file line number Diff line number Diff line change
Expand Up @@ -852,13 +852,13 @@ typedef struct {
pd_CallHashOf_V2_t call_hash;
} pd_proxy_announce_V2_t;

#define PD_CALL_PROXY_REJECT_ANNOUNCEMENT_V2 7
#define PD_CALL_PROXY_REJECT_ANNOUNCEMENT_V2 8
typedef struct {
pd_AccountId_V2_t delegate;
pd_CallHashOf_V2_t call_hash;
} pd_proxy_reject_announcement_V2_t;

#define PD_CALL_PROXY_REMOVE_ANNOUNCEMENT_V2 8
#define PD_CALL_PROXY_REMOVE_ANNOUNCEMENT_V2 7
typedef struct {
pd_AccountId_V2_t real;
pd_CallHashOf_V2_t call_hash;
Expand Down

0 comments on commit 277192b

Please sign in to comment.