mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-23 13:45:48 +00:00
Update getBalances to use getTrustlines
This commit is contained in:
@@ -31,9 +31,20 @@ function wrapCatch(asyncFunction: () => void): () => void {
|
||||
};
|
||||
}
|
||||
|
||||
function composeAsync(wrapper, callback) {
|
||||
return function(error, data) {
|
||||
if (error) {
|
||||
callback(error);
|
||||
return;
|
||||
}
|
||||
callback(null, wrapper(data));
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
dropsToXrp,
|
||||
xrpToDrops,
|
||||
toRippledAmount,
|
||||
wrapCatch
|
||||
wrapCatch,
|
||||
composeAsync
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user