From: Chris Duncan Date: Sat, 2 Aug 2025 09:37:56 +0000 (-0700) Subject: Fix wallet restore from db id. X-Git-Tag: v0.10.5~47^2~14 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=33d5a32272bcf2c966abe3539b47390440501fe6;p=libnemo.git Fix wallet restore from db id. --- diff --git a/src/lib/wallet.ts b/src/lib/wallet.ts index c21aabc..541221d 100644 --- a/src/lib/wallet.ts +++ b/src/lib/wallet.ts @@ -147,7 +147,9 @@ export class Wallet { throw new Error('Invalid wallet type from database') } Wallet.#isInternal = true - return new this(type) + const self = new this(type) + self.#id = id + return self } catch (err) { throw new Error('Failed to restore wallet', { cause: err }) }