mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-12 16:45:49 +00:00
Get validated ledger in getSettings and getAccountInfo
This commit is contained in:
@@ -24,7 +24,7 @@ function getAccountInfoAsync(account, options, callback) {
|
|||||||
|
|
||||||
const request = {
|
const request = {
|
||||||
account: account,
|
account: account,
|
||||||
ledger: options.ledgerVersion
|
ledger: options.ledgerVersion || 'validated'
|
||||||
};
|
};
|
||||||
|
|
||||||
this.remote.requestAccountInfo(request,
|
this.remote.requestAccountInfo(request,
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ function getSettingsAsync(account, options, callback) {
|
|||||||
|
|
||||||
const request = {
|
const request = {
|
||||||
account: account,
|
account: account,
|
||||||
ledger: options.ledgerVersion
|
ledger: options.ledgerVersion || 'validated'
|
||||||
};
|
};
|
||||||
|
|
||||||
this.remote.requestAccountInfo(request,
|
this.remote.requestAccountInfo(request,
|
||||||
|
|||||||
Reference in New Issue
Block a user