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 #174 from Zondax/fix-democracy
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala authored Nov 2, 2022
2 parents 720827d + e34c1cf commit 4a2b7ec
Show file tree
Hide file tree
Showing 28 changed files with 26,506 additions and 39,872 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=14
# This is the `spec_version` field of `Runtime`
APPVERSION_N=9300
# This is the patch version of this release
APPVERSION_P=1
APPVERSION_P=2
12 changes: 6 additions & 6 deletions app/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 14:
return _readMethod_V14(c, moduleIdx, callIdx, &method->V14);
case 13:
return _readMethod_V13(c, moduleIdx, callIdx, &method->V13);
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 14:
return _getMethod_NumItems_V14(moduleIdx, callIdx);
case 13:
return _getMethod_NumItems_V13(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 14:
return _getMethod_ModuleName_V14(moduleIdx);
case 13:
return _getMethod_ModuleName_V13(moduleIdx);
default:
return NULL;
}
Expand All @@ -64,8 +58,6 @@ const char* _getMethod_Name(uint32_t transactionVersion, uint8_t moduleIdx, uint
switch (transactionVersion) {
case 14:
return _getMethod_Name_V14(moduleIdx, callIdx);
case 13:
return _getMethod_Name_V13(moduleIdx, callIdx);
default:
return 0;
}
Expand All @@ -76,8 +68,6 @@ const char* _getMethod_ItemName(uint32_t transactionVersion, uint8_t moduleIdx,
switch (transactionVersion) {
case 14:
return _getMethod_ItemName_V14(moduleIdx, callIdx, itemIdx);
case 13:
return _getMethod_ItemName_V13(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 14:
return _getMethod_ItemValue_V14(&m->V14, moduleIdx, callIdx, itemIdx, outValue,
outValueLen, pageIdx, pageCount);
case 13:
return _getMethod_ItemValue_V13(&m->V13, 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 14:
return _getMethod_ItemIsExpert_V14(moduleIdx, callIdx, itemIdx);
case 13:
return _getMethod_ItemIsExpert_V13(moduleIdx, callIdx, itemIdx);
default:
return false;
}
Expand All @@ -116,8 +101,6 @@ bool _getMethod_IsNestingSupported(uint32_t transactionVersion, uint8_t moduleId
switch (transactionVersion) {
case 14:
return _getMethod_IsNestingSupported_V14(moduleIdx, callIdx);
case 13:
return _getMethod_IsNestingSupported_V13(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_V13.h"
#include "substrate_dispatch_V14.h"
#include <stddef.h>
#include <stdint.h>
Expand All @@ -36,9 +35,6 @@ extern "C" {
case 14: \
return PD_CALL_##CALL##_V14; \
\
case 13: \
return PD_CALL_##CALL##_V13; \
\
default: \
return 0; \
} \
Expand Down
Loading

0 comments on commit 4a2b7ec

Please sign in to comment.