mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-22 21:25:49 +00:00
Add getLedgerVersion and unit test
This commit is contained in:
@@ -36,10 +36,15 @@ function getFee() {
|
||||
return common.dropsToXrp(this.remote.createTransaction()._computeFee());
|
||||
}
|
||||
|
||||
function getLedgerVersion() {
|
||||
return this.remote.getLedgerSequence();
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
connect: connect,
|
||||
disconnect: disconnect,
|
||||
isConnected: isConnected,
|
||||
getServerInfo: getServerInfo,
|
||||
getFee: getFee
|
||||
connect,
|
||||
disconnect,
|
||||
isConnected,
|
||||
getServerInfo,
|
||||
getFee,
|
||||
getLedgerVersion
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user