Skip to content

Commit

Permalink
Improvements (#101)
Browse files Browse the repository at this point in the history
* encode new address type

* update deps

* update snapshots
  • Loading branch information
chcmedeiros authored Dec 26, 2024
1 parent cfa82bc commit c5c693f
Show file tree
Hide file tree
Showing 15 changed files with 121 additions and 4 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=2
# This is the `spec_version` field of `Runtime`
APPVERSION_N=0
# This is the patch version of this release
APPVERSION_P=0
APPVERSION_P=1
3 changes: 3 additions & 0 deletions app/src/crypto_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ parser_error_t crypto_encodeAltAddress(const AddressAlt *addr, char *address, ui
tmpBuffer[0] = PREFIX_MASP;
break;
case 13:
tmpBuffer[0] = PREFIX_REPLAY_PROTECTION;
break;
case 14:
tmpBuffer[0] = PREFIX_TMP_STORAGE;
break;
}
Expand Down
3 changes: 2 additions & 1 deletion app/src/parser_address.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ parser_error_t readAddressInternal(parser_context_t *ctx, InternalAddress *obj)
case 10: //Multitoken
case 11: //Pgf
case 12: //Masp
case 13: //TempStorage
case 13: //ReplayProtection
case 14: //TempStorage
break;
case 4:
CHECK_ERROR(readInternalAddressIbcToken(ctx, &obj->IbcToken))
Expand Down
1 change: 1 addition & 0 deletions app/src/parser_address.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ extern "C" {
#define PREFIX_IBC_TOKEN 13
#define PREFIX_MASP 14
#define PREFIX_TMP_STORAGE 15
#define PREFIX_REPLAY_PROTECTION 16
#define PREFIX_INTERNAL 2

parser_error_t readAddressAlt(parser_context_t *ctx, AddressAlt *obj);
Expand Down
2 changes: 1 addition & 1 deletion js
Submodule js updated 2 files
+11 −11 package.json
+244 −199 yarn.lock
112 changes: 112 additions & 0 deletions tests/testvectors.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests_zemu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"eslint": "^9.16.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.9.0",
"eslint-plugin-jest": "^28.10.0",
"eslint-plugin-prettier": "^5.2.1",
"jest": "29.7.0",
"js-sha256": "0.11.0",
Expand Down
Binary file modified tests_zemu/snapshots/fl-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/x-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/x-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c5c693f

Please sign in to comment.