Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust migration app message #221

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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=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
2 changes: 1 addition & 1 deletion app/src/common/migration.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
18 changes: 12 additions & 6 deletions tests_zemu/globalsetup.js
Original file line number Diff line number Diff line change
@@ -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()
}
24 changes: 13 additions & 11 deletions tests_zemu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
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/s-migration-mainmenu/00002.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/sp-migration-mainmenu/00002.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/00001.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-migration-mainmenu/00001.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.
Binary file modified tests_zemu/snapshots/x-migration-mainmenu/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading