Skip to content

Commit

Permalink
wip - upgrade to v7
Browse files Browse the repository at this point in the history
  • Loading branch information
0xPxt committed Oct 9, 2024
1 parent c279d72 commit 0350029
Show file tree
Hide file tree
Showing 15 changed files with 38,067 additions and 82,777 deletions.
2 changes: 1 addition & 1 deletion app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ include $(CURDIR)/../deps/ledger-zxlib/makefiles/Makefile.installer_script
include $(BOLOS_SDK)/Makefile.defines

# Set the default value for PRODUCTION_BUILD to 0 if not already defined
PRODUCTION_BUILD ?= 1
PRODUCTION_BUILD ?= 0

$(info ************ TARGET_NAME = [$(TARGET_NAME)])

Expand Down
1 change: 1 addition & 0 deletions app/src/parser_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ extern "C" {
#define GEN_DEF_TOSTRING_ARRAY(SIZE) \
CLEAN_AND_CHECK(); \
if ((SIZE) == 0) { \
*pageCount = 1; \
snprintf(outValue, outValueLen, "Empty"); \
return parser_ok; \
} \
Expand Down
4 changes: 1 addition & 3 deletions app/src/parser_impl_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
#include "substrate_types.h"
#include "substrate_dispatch.h"

#define SUPPORTED_SPEC_VERSION_V4 6003001

parser_error_t parser_init_context(parser_context_t *ctx,
const uint8_t *buffer,
uint16_t bufferSize) {
Expand Down Expand Up @@ -354,7 +352,7 @@ parser_error_t _checkVersions(parser_context_t *c) {
transactionVersion += (uint32_t) p[3] << 24u;

if (transactionVersion != (SUPPORTED_TX_VERSION_CURRENT) &&
transactionVersion != (SUPPORTED_SPEC_VERSION_V4)) {
transactionVersion != (SUPPORTED_TX_VERSION_PREVIOUS)) {
return parser_tx_version_not_supported;
}

Expand Down
Loading

0 comments on commit 0350029

Please sign in to comment.