fix: ensure crypto initialized before handling messages

Fixed race condition where message handlers could process requests
before cryptoWaitReady() and keyring.loadAll() completed.

Now all message handlers wait for initialization before processing,
which fixes the seed creation failure on first account creation.
This commit is contained in:
2026-02-02 19:34:50 +03:00
parent 084187e67b
commit f5495f7cac
8 changed files with 82 additions and 92 deletions
+2 -1
View File
@@ -14,7 +14,7 @@
},
"sideEffects": false,
"type": "module",
"version": "0.62.21",
"version": "0.62.24",
"versions": {
"git": "0.62.6",
"npm": "0.62.6"
@@ -77,6 +77,7 @@
"@pezkuwi/ui-shared": "^3.17.1",
"@pezkuwi/util": "^14.0.25",
"@pezkuwi/util-crypto": "^14.0.25",
"@pezkuwi/wasm-crypto": "^7.5.18",
"@pezkuwi/x-bigint": "^14.0.25",
"@pezkuwi/x-fetch": "^14.0.25",
"@pezkuwi/x-global": "^14.0.25",