]> git.codecow.com Git - libnemo.git/commitdiff
Fix missing braces.
authorChris Duncan <chris@codecow.com>
Sun, 9 Aug 2026 19:06:57 +0000 (12:06 -0700)
committerChris Duncan <chris@codecow.com>
Sun, 9 Aug 2026 19:06:57 +0000 (12:06 -0700)
src/lib/account/refresh.ts
src/lib/vault/vault-worker.ts

index 10c14ce0286889065513c3de251b4cee4b821c9c..9e4ce59e14bd6ddb78d04fa1578b0f6a37736732 100644 (file)
@@ -53,7 +53,7 @@ export async function _refresh (account: Account, rpc: unknown): Promise<void> {
                confirmedFrontierBlock.epoch(accountInfo.account_version)
        } else if (confirmedFrontierSubtype === 'change') {
                confirmedFrontierBlock.change(confirmedFrontierContents.representative)
-       } else if (confirmedFrontierSubtype === 'open' || confirmedFrontierSubtype === 'receive' || confirmedFrontierSubtype === 'send'{
+       } else if (confirmedFrontierSubtype === 'open' || confirmedFrontierSubtype === 'receive' || confirmedFrontierSubtype === 'send'{
                confirmedFrontierBlock[confirmedFrontierSubtype](confirmedFrontierContents.link, 0)
        } else {
                throw new TypeError('Invalid confirmed frontier block subtype', { cause: confirmedFrontierSubtype })
index 4364f482699f35ae29517317f08fc257eff3f649..8b3e41ef053fce1d2ff55070abbd3e28f5134f40 100644 (file)
@@ -275,6 +275,7 @@ function sign (index?: Uint32Array, data?: ArrayBuffer): Promise<Record<string,
                }
                if (data == null) {
                        throw new VaultError('Data to sign not found')
+               }       
                const prv = new Uint8Array(32)
                return _ckd(index[0])
                        .then(result => {