From 7fc6adb7762c3adc7d908eabae0457def2163a81 Mon Sep 17 00:00:00 2001 From: Chris Clark Date: Wed, 12 Aug 2015 15:58:47 -0700 Subject: [PATCH] Get validated ledger in getSettings and getAccountInfo --- src/api/ledger/accountinfo.js | 2 +- src/api/ledger/settings.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/ledger/accountinfo.js b/src/api/ledger/accountinfo.js index 1f6fc575..72854abb 100644 --- a/src/api/ledger/accountinfo.js +++ b/src/api/ledger/accountinfo.js @@ -24,7 +24,7 @@ function getAccountInfoAsync(account, options, callback) { const request = { account: account, - ledger: options.ledgerVersion + ledger: options.ledgerVersion || 'validated' }; this.remote.requestAccountInfo(request, diff --git a/src/api/ledger/settings.js b/src/api/ledger/settings.js index 03c659bb..9fc2cd35 100644 --- a/src/api/ledger/settings.js +++ b/src/api/ledger/settings.js @@ -30,7 +30,7 @@ function getSettingsAsync(account, options, callback) { const request = { account: account, - ledger: options.ledgerVersion + ledger: options.ledgerVersion || 'validated' }; this.remote.requestAccountInfo(request,