Skip to content

Commit

Permalink
allow previous runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj-RR1 committed Oct 1, 2023
1 parent 52ac91e commit 157c860
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/src/substrate_dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ parser_error_t _readMethod(
{
switch (c->tx_obj->transactionVersion) {
case 1:
return _readMethod_V2(c, moduleIdx, callIdx, &method->V1);
return _readMethod_V1(c, moduleIdx, callIdx, &method->V1);
case 2:
return _readMethod_V2(c, moduleIdx, callIdx, &method->V1);
default:
Expand All @@ -39,7 +39,7 @@ uint8_t _getMethod_NumItems(uint32_t transactionVersion, uint8_t moduleIdx, uint
{
switch (transactionVersion) {
case 1:
return _getMethod_NumItems_V2(moduleIdx, callIdx);
return _getMethod_NumItems_V1(moduleIdx, callIdx);
case 2:
return _getMethod_NumItems_V2(moduleIdx, callIdx);
default:
Expand All @@ -51,7 +51,7 @@ const char* _getMethod_ModuleName(uint32_t transactionVersion, uint8_t moduleIdx
{
switch (transactionVersion) {
case 1:
return _getMethod_ModuleName_V2(moduleIdx);
return _getMethod_ModuleName_V1(moduleIdx);
case 2:
return _getMethod_ModuleName_V2(moduleIdx);
default:
Expand All @@ -63,7 +63,7 @@ const char* _getMethod_Name(uint32_t transactionVersion, uint8_t moduleIdx, uint
{
switch (transactionVersion) {
case 1:
return _getMethod_Name_V2(moduleIdx, callIdx);
return _getMethod_Name_V1(moduleIdx, callIdx);
case 2:
return _getMethod_Name_V2(moduleIdx, callIdx);
default:
Expand All @@ -75,7 +75,7 @@ const char* _getMethod_ItemName(uint32_t transactionVersion, uint8_t moduleIdx,
{
switch (transactionVersion) {
case 1:
return _getMethod_ItemName_V2(moduleIdx, callIdx, itemIdx);
return _getMethod_ItemName_V1(moduleIdx, callIdx, itemIdx);
case 2:
return _getMethod_ItemName_V2(moduleIdx, callIdx, itemIdx);
default:
Expand All @@ -89,7 +89,7 @@ parser_error_t _getMethod_ItemValue(uint32_t transactionVersion, pd_Method_t* m,
{
switch (transactionVersion) {
case 1:
return _getMethod_ItemValue_V2(&m->V1, moduleIdx, callIdx, itemIdx, outValue,
return _getMethod_ItemValue_V1(&m->V1, moduleIdx, callIdx, itemIdx, outValue,
outValueLen, pageIdx, pageCount);
case 2:
return _getMethod_ItemValue_V2(&m->V1, moduleIdx, callIdx, itemIdx, outValue,
Expand All @@ -103,7 +103,7 @@ bool _getMethod_ItemIsExpert(uint32_t transactionVersion, uint8_t moduleIdx, uin
{
switch (transactionVersion) {
case 1:
return _getMethod_ItemIsExpert_V2(moduleIdx, callIdx, itemIdx);
return _getMethod_ItemIsExpert_V1(moduleIdx, callIdx, itemIdx);
case 2:
return _getMethod_ItemIsExpert_V2(moduleIdx, callIdx, itemIdx);
default:
Expand All @@ -115,7 +115,7 @@ bool _getMethod_IsNestingSupported(uint32_t transactionVersion, uint8_t moduleId
{
switch (transactionVersion) {
case 1:
return _getMethod_IsNestingSupported_V2(moduleIdx, callIdx);
return _getMethod_IsNestingSupported_V1(moduleIdx, callIdx);
case 2:
return _getMethod_IsNestingSupported_V2(moduleIdx, callIdx);
default:
Expand Down

0 comments on commit 157c860

Please sign in to comment.