]> git.codecow.com Git - libnemo.git/commitdiff
Fix wallet refresh default args.
authorChris Duncan <chris@codecow.com>
Tue, 11 Aug 2026 04:24:53 +0000 (21:24 -0700)
committerChris Duncan <chris@codecow.com>
Tue, 11 Aug 2026 04:24:53 +0000 (21:24 -0700)
src/lib/rpc/index.ts
src/lib/wallet/index.ts

index 98347001eb5b7b901e73f554023c17eccb9c8d48..ee226c8d762105da43273a21e5980e832006aef8 100644 (file)
@@ -106,7 +106,6 @@ export class Rpc {
                        }
                        return Schema[action](body)
                } catch (err) {
-                       console.error(err)
                        throw new Error(`RPC ${action} request failed`, { cause: err })
                } finally {
                        clearTimeout(abort)
index 5fcdd9f7cd22ebcec889dc09604fe840a77d3d67..d3d537aeac2f9e24edc1d6925747f01e3c99db97 100644 (file)
@@ -367,7 +367,7 @@ export class Wallet {
        * @param {(Rpc|string|URL)} rpc - RPC node information required to refresh accounts, calculate PoW, and process blocks\r
        * @returns {Promise<Map<number, Account>>} Promise for accounts with updated balances, frontiers, and representatives\r
        */\r
-       async refresh (rpc: Rpc | string | URL, from: number = 0, to: number = from): Promise<Map<number, Account>> {\r
+       async refresh (rpc: Rpc | string | URL, from: number = 0, to: number = from + 1): Promise<Map<number, Account>> {\r
                return _refresh(this, rpc, from, to)\r
        }\r
 \r