Skip to content

Commit

Permalink
Merge pull request #160 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 9e1ed48 + 39d3b23 commit 004f80e
Show file tree
Hide file tree
Showing 28 changed files with 23,616 additions and 36,379 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=15
# This is the `spec_version` field of `Runtime`
APPVERSION_N=9300
# This is the patch version of this release
APPVERSION_P=0
APPVERSION_P=1
24 changes: 12 additions & 12 deletions app/rust/Cargo.lock

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

2 changes: 1 addition & 1 deletion app/src/substrate/substrate_coin.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ typedef enum {
#define SUPPORTED_TX_VERSION_CURRENT LEDGER_MAJOR_VERSION
#define SUPPORTED_TX_VERSION_PREVIOUS (LEDGER_MAJOR_VERSION - 1)
#define SUPPORTED_SPEC_VERSION (LEDGER_MINOR_VERSION + 0)
#define SUPPORTED_MINIMUM_SPEC_VERSION 9000
#define SUPPORTED_MINIMUM_SPEC_VERSION 9300

#define COIN_AMOUNT_DECIMAL_PLACES 10

Expand Down
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 15:
return _readMethod_V15(c, moduleIdx, callIdx, &method->V15);
case 14:
return _readMethod_V14(c, moduleIdx, callIdx, &method->V14);
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 15:
return _getMethod_NumItems_V15(moduleIdx, callIdx);
case 14:
return _getMethod_NumItems_V14(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 15:
return _getMethod_ModuleName_V15(moduleIdx);
case 14:
return _getMethod_ModuleName_V14(moduleIdx);
default:
return NULL;
}
Expand All @@ -64,8 +58,6 @@ const char* _getMethod_Name(uint32_t transactionVersion, uint8_t moduleIdx, uint
switch (transactionVersion) {
case 15:
return _getMethod_Name_V15(moduleIdx, callIdx);
case 14:
return _getMethod_Name_V14(moduleIdx, callIdx);
default:
return 0;
}
Expand All @@ -76,8 +68,6 @@ const char* _getMethod_ItemName(uint32_t transactionVersion, uint8_t moduleIdx,
switch (transactionVersion) {
case 15:
return _getMethod_ItemName_V15(moduleIdx, callIdx, itemIdx);
case 14:
return _getMethod_ItemName_V14(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 15:
return _getMethod_ItemValue_V15(&m->V15, moduleIdx, callIdx, itemIdx, outValue,
outValueLen, pageIdx, pageCount);
case 14:
return _getMethod_ItemValue_V14(&m->V14, 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 15:
return _getMethod_ItemIsExpert_V15(moduleIdx, callIdx, itemIdx);
case 14:
return _getMethod_ItemIsExpert_V14(moduleIdx, callIdx, itemIdx);
default:
return false;
}
Expand All @@ -116,8 +101,6 @@ bool _getMethod_IsNestingSupported(uint32_t transactionVersion, uint8_t moduleId
switch (transactionVersion) {
case 15:
return _getMethod_IsNestingSupported_V15(moduleIdx, callIdx);
case 14:
return _getMethod_IsNestingSupported_V14(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_V14.h"
#include "substrate_dispatch_V15.h"
#include <stddef.h>
#include <stdint.h>
Expand All @@ -36,9 +35,6 @@ extern "C" {
case 15: \
return PD_CALL_##CALL##_V15; \
\
case 14: \
return PD_CALL_##CALL##_V14; \
\
default: \
return 0; \
} \
Expand Down
Loading

0 comments on commit 004f80e

Please sign in to comment.