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,