From: Chris Duncan Date: Tue, 11 Aug 2026 04:24:53 +0000 (-0700) Subject: Fix wallet refresh default args. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=0117dccfa4c24ff1f7721f1e0e4476973a287a59;p=libnemo.git Fix wallet refresh default args. --- diff --git a/src/lib/rpc/index.ts b/src/lib/rpc/index.ts index 9834700..ee226c8 100644 --- a/src/lib/rpc/index.ts +++ b/src/lib/rpc/index.ts @@ -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) diff --git a/src/lib/wallet/index.ts b/src/lib/wallet/index.ts index 5fcdd9f..d3d537a 100644 --- a/src/lib/wallet/index.ts +++ b/src/lib/wallet/index.ts @@ -367,7 +367,7 @@ export class Wallet { * @param {(Rpc|string|URL)} rpc - RPC node information required to refresh accounts, calculate PoW, and process blocks * @returns {Promise>} Promise for accounts with updated balances, frontiers, and representatives */ - async refresh (rpc: Rpc | string | URL, from: number = 0, to: number = from): Promise> { + async refresh (rpc: Rpc | string | URL, from: number = 0, to: number = from + 1): Promise> { return _refresh(this, rpc, from, to) }