diff --git a/app/Makefile.version b/app/Makefile.version index a30a0c66..2a5624da 100644 --- a/app/Makefile.version +++ b/app/Makefile.version @@ -3,4 +3,4 @@ APPVERSION_M=100 # This is the `spec_version` field of `Runtime` APPVERSION_N=0 # This is the patch version of this release -APPVERSION_P=3 +APPVERSION_P=4 diff --git a/app/src/common/migration.c b/app/src/common/migration.c index f51b7139..b623614f 100644 --- a/app/src/common/migration.c +++ b/app/src/common/migration.c @@ -45,7 +45,7 @@ zxerr_t migrationGetItem(int8_t displayIdx, snprintf(outKey, outKeyLen, "Migration"); const char instructions[] = - "This app is only meant for performing the migration to Polkadot Generic App. DO NOT use this app frequently."; + "This app is only meant for performing the migration to Polkadot Generic App; DO NOT use this app frequently."; pageStringExt(outVal, outValLen, instructions, sizeof(instructions), pageIdx, pageCount); return zxerr_ok; } diff --git a/tests_zemu/globalsetup.js b/tests_zemu/globalsetup.js index e246a6da..5837308b 100644 --- a/tests_zemu/globalsetup.js +++ b/tests_zemu/globalsetup.js @@ -1,15 +1,21 @@ const Zemu = require('@zondax/zemu') -const catchExit = async () => { - process.on('SIGINT', () => { - Zemu.default.stopAllEmuContainers(function () { - process.exit() - }) +/** + * Sets up a handler to stop all emulator containers when a SIGINT is received. + */ +const catchExit = () => { + process.on('SIGINT', async () => { + await Zemu.default.stopAllEmuContainers() + process.exit() }) } +/** + * Initializes the emulator environment by setting up exit handlers, + * pulling the latest emulator image, and stopping any running emulator containers. + */ module.exports = async () => { - await catchExit() + catchExit() await Zemu.default.checkAndPullImage() await Zemu.default.stopAllEmuContainers() } diff --git a/tests_zemu/package.json b/tests_zemu/package.json index b487f30a..85bf43cd 100644 --- a/tests_zemu/package.json +++ b/tests_zemu/package.json @@ -26,33 +26,35 @@ "upgrade": "bunx npm-check-updates -i" }, "dependencies": { - "@zondax/ledger-js": "^0.9.1", - "@zondax/ledger-substrate": "^0.44.2", + "@zondax/ledger-js": "^0.10.0", + "@zondax/ledger-substrate": "^0.44.3", "@zondax/zemu": "^0.49.0" }, "devDependencies": { - "@ledgerhq/hw-transport-node-hid": "^6.28.6", + "@ledgerhq/hw-transport-node-hid": "^6.29.0", "@ledgerhq/logs": "^6.12.0", + "@noble/curves": "^1.4.0", + "@trivago/prettier-plugin-sort-imports": "^4.3.0", "@types/jest": "^29.5.12", "@types/ledgerhq__hw-transport": "^4.21.8", - "@typescript-eslint/eslint-plugin": "^7.10.0", - "@typescript-eslint/parser": "^7.10.0", + "@typescript-eslint/eslint-plugin": "^7.14.1", + "@typescript-eslint/parser": "^7.14.1", "blakejs": "^1.2.1", "crypto-js": "4.2.0", "ed25519-supercop": "^2.0.1", - "eslint": "^9.3.0", + "eslint": "^9.5.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.29.1", - "eslint-plugin-jest": "^28.5.0", + "eslint-plugin-jest": "^28.6.0", "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-promise": "^6.2.0", - "eslint-plugin-tsdoc": "^0.2.17", + "eslint-plugin-tsdoc": "^0.3.0", "eslint-plugin-unused-imports": "^4.0.0", "jest": "29.7.0", "jssha": "^3.3.1", - "prettier": "^3.2.5", - "ts-jest": "^29.1.3", + "prettier": "^3.3.2", + "ts-jest": "^29.1.5", "ts-node": "^10.9.2", - "typescript": "^5.4.5" + "typescript": "^5.5.2" } } diff --git a/tests_zemu/snapshots/s-mainmenu/00004.png b/tests_zemu/snapshots/s-mainmenu/00004.png index ade8ff33..437e1c56 100644 Binary files a/tests_zemu/snapshots/s-mainmenu/00004.png and b/tests_zemu/snapshots/s-mainmenu/00004.png differ diff --git a/tests_zemu/snapshots/s-mainmenu/00010.png b/tests_zemu/snapshots/s-mainmenu/00010.png index ade8ff33..437e1c56 100644 Binary files a/tests_zemu/snapshots/s-mainmenu/00010.png and b/tests_zemu/snapshots/s-mainmenu/00010.png differ diff --git a/tests_zemu/snapshots/s-migration-mainmenu/00002.png b/tests_zemu/snapshots/s-migration-mainmenu/00002.png index 8dd58690..30019356 100644 Binary files a/tests_zemu/snapshots/s-migration-mainmenu/00002.png and b/tests_zemu/snapshots/s-migration-mainmenu/00002.png differ diff --git a/tests_zemu/snapshots/sp-mainmenu/00004.png b/tests_zemu/snapshots/sp-mainmenu/00004.png index 82734271..a4595f55 100644 Binary files a/tests_zemu/snapshots/sp-mainmenu/00004.png and b/tests_zemu/snapshots/sp-mainmenu/00004.png differ diff --git a/tests_zemu/snapshots/sp-mainmenu/00010.png b/tests_zemu/snapshots/sp-mainmenu/00010.png index 82734271..a4595f55 100644 Binary files a/tests_zemu/snapshots/sp-mainmenu/00010.png and b/tests_zemu/snapshots/sp-mainmenu/00010.png differ diff --git a/tests_zemu/snapshots/sp-migration-mainmenu/00002.png b/tests_zemu/snapshots/sp-migration-mainmenu/00002.png index 53b3715f..3f0d518e 100644 Binary files a/tests_zemu/snapshots/sp-migration-mainmenu/00002.png and b/tests_zemu/snapshots/sp-migration-mainmenu/00002.png differ diff --git a/tests_zemu/snapshots/st-mainmenu/00001.png b/tests_zemu/snapshots/st-mainmenu/00001.png index 3f9063cc..6a069c54 100644 Binary files a/tests_zemu/snapshots/st-mainmenu/00001.png and b/tests_zemu/snapshots/st-mainmenu/00001.png differ diff --git a/tests_zemu/snapshots/st-migration-mainmenu/00001.png b/tests_zemu/snapshots/st-migration-mainmenu/00001.png index cdde90fa..03bcc21e 100644 Binary files a/tests_zemu/snapshots/st-migration-mainmenu/00001.png and b/tests_zemu/snapshots/st-migration-mainmenu/00001.png differ diff --git a/tests_zemu/snapshots/x-mainmenu/00004.png b/tests_zemu/snapshots/x-mainmenu/00004.png index 82734271..a4595f55 100644 Binary files a/tests_zemu/snapshots/x-mainmenu/00004.png and b/tests_zemu/snapshots/x-mainmenu/00004.png differ diff --git a/tests_zemu/snapshots/x-mainmenu/00010.png b/tests_zemu/snapshots/x-mainmenu/00010.png index 82734271..a4595f55 100644 Binary files a/tests_zemu/snapshots/x-mainmenu/00010.png and b/tests_zemu/snapshots/x-mainmenu/00010.png differ diff --git a/tests_zemu/snapshots/x-migration-mainmenu/00002.png b/tests_zemu/snapshots/x-migration-mainmenu/00002.png index 53b3715f..3f0d518e 100644 Binary files a/tests_zemu/snapshots/x-migration-mainmenu/00002.png and b/tests_zemu/snapshots/x-migration-mainmenu/00002.png differ