From b031f80564391b110164fe94ba725c5df9bc2166 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 2 Aug 2025 12:25:57 -0700 Subject: [PATCH] Fix blake wallet import not assigning mnemonic from seed as if entropy as allowed by spec. --- src/lib/safe.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/safe.ts b/src/lib/safe.ts index 87fc02f..de5657b 100644 --- a/src/lib/safe.ts +++ b/src/lib/safe.ts @@ -190,6 +190,9 @@ export class Safe { this.#type = type if (secret instanceof ArrayBuffer) { this.#seed = secret + if (type === 'BLAKE2b') { + this.#mnemonic = await Bip39Mnemonic.fromEntropy(new Uint8Array(secret)) + } } else { this.#mnemonic = await Bip39Mnemonic.fromPhrase(secret) this.#seed = type === 'BIP-44' -- 2.47.3