Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #183 from Zondax/remove-v17
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala authored Dec 15, 2022
2 parents e3d3e28 + 3cfb5a7 commit 872aa69
Show file tree
Hide file tree
Showing 18 changed files with 29,322 additions and 45,722 deletions.
2 changes: 1 addition & 1 deletion app/Makefile.version
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ APPVERSION_M=18
# This is the `spec_version` field of `Runtime`
APPVERSION_N=9350
# This is the patch version of this release
APPVERSION_P=0
APPVERSION_P=1
17 changes: 0 additions & 17 deletions app/src/substrate/substrate_dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ parser_error_t _readMethod(
switch (c->tx_obj->transactionVersion) {
case 18:
return _readMethod_V18(c, moduleIdx, callIdx, &method->V18);
case 17:
return _readMethod_V17(c, moduleIdx, callIdx, &method->V17);
default:
return parser_tx_version_not_supported;
}
Expand All @@ -40,8 +38,6 @@ uint8_t _getMethod_NumItems(uint32_t transactionVersion, uint8_t moduleIdx, uint
switch (transactionVersion) {
case 18:
return _getMethod_NumItems_V18(moduleIdx, callIdx);
case 17:
return _getMethod_NumItems_V17(moduleIdx, callIdx);
default:
return parser_tx_version_not_supported;
}
Expand All @@ -52,8 +48,6 @@ const char* _getMethod_ModuleName(uint32_t transactionVersion, uint8_t moduleIdx
switch (transactionVersion) {
case 18:
return _getMethod_ModuleName_V18(moduleIdx);
case 17:
return _getMethod_ModuleName_V17(moduleIdx);
default:
return NULL;
}
Expand All @@ -64,8 +58,6 @@ const char* _getMethod_Name(uint32_t transactionVersion, uint8_t moduleIdx, uint
switch (transactionVersion) {
case 18:
return _getMethod_Name_V18(moduleIdx, callIdx);
case 17:
return _getMethod_Name_V17(moduleIdx, callIdx);
default:
return 0;
}
Expand All @@ -76,8 +68,6 @@ const char* _getMethod_ItemName(uint32_t transactionVersion, uint8_t moduleIdx,
switch (transactionVersion) {
case 18:
return _getMethod_ItemName_V18(moduleIdx, callIdx, itemIdx);
case 17:
return _getMethod_ItemName_V17(moduleIdx, callIdx, itemIdx);
default:
return NULL;
}
Expand All @@ -91,9 +81,6 @@ parser_error_t _getMethod_ItemValue(uint32_t transactionVersion, pd_Method_t* m,
case 18:
return _getMethod_ItemValue_V18(&m->V18, moduleIdx, callIdx, itemIdx, outValue,
outValueLen, pageIdx, pageCount);
case 17:
return _getMethod_ItemValue_V17(&m->V17, moduleIdx, callIdx, itemIdx, outValue,
outValueLen, pageIdx, pageCount);
default:
return parser_tx_version_not_supported;
}
Expand All @@ -104,8 +91,6 @@ bool _getMethod_ItemIsExpert(uint32_t transactionVersion, uint8_t moduleIdx, uin
switch (transactionVersion) {
case 18:
return _getMethod_ItemIsExpert_V18(moduleIdx, callIdx, itemIdx);
case 17:
return _getMethod_ItemIsExpert_V17(moduleIdx, callIdx, itemIdx);
default:
return false;
}
Expand All @@ -116,8 +101,6 @@ bool _getMethod_IsNestingSupported(uint32_t transactionVersion, uint8_t moduleId
switch (transactionVersion) {
case 18:
return _getMethod_IsNestingSupported_V18(moduleIdx, callIdx);
case 17:
return _getMethod_IsNestingSupported_V17(moduleIdx, callIdx);
default:
return false;
}
Expand Down
4 changes: 0 additions & 4 deletions app/src/substrate/substrate_dispatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ extern "C" {

#include "parser_common.h"
#include "stdbool.h"
#include "substrate_dispatch_V17.h"
#include "substrate_dispatch_V18.h"
#include <stddef.h>
#include <stdint.h>
Expand All @@ -36,9 +35,6 @@ extern "C" {
case 18: \
return PD_CALL_##CALL##_V18; \
\
case 17: \
return PD_CALL_##CALL##_V17; \
\
default: \
return 0; \
} \
Expand Down
Loading

0 comments on commit 872aa69

Please sign in to comment.