@ecency/wallets 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/node/index.mjs
CHANGED
|
@@ -183,7 +183,14 @@ function useGetExternalWalletBalanceQuery(currency, address) {
|
|
|
183
183
|
function useSeedPhrase(username) {
|
|
184
184
|
return useQuery({
|
|
185
185
|
queryKey: ["ecency-wallets", "seed", username],
|
|
186
|
-
queryFn: async () => bip39.generateMnemonic(128)
|
|
186
|
+
queryFn: async () => bip39.generateMnemonic(128),
|
|
187
|
+
// CRITICAL: Prevent seed regeneration - cache forever
|
|
188
|
+
// Once generated, the seed must NEVER change to ensure consistency between:
|
|
189
|
+
// 1. Displayed seed phrase
|
|
190
|
+
// 2. Downloaded seed file
|
|
191
|
+
// 3. Keys sent to API for account creation
|
|
192
|
+
staleTime: Infinity,
|
|
193
|
+
gcTime: Infinity
|
|
187
194
|
});
|
|
188
195
|
}
|
|
189
196
|
var options = {
|