@cryptorubic/web3 1.1.0-alpha-stellar.6 → 1.1.0-alpha-stellar.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptorubic/web3",
3
- "version": "1.1.0-alpha-stellar.6",
3
+ "version": "1.1.0-alpha-stellar.7",
4
4
  "dependencies": {
5
5
  "@ethersproject/bignumber": "^5.8.0",
6
6
  "@mysten/sui": "^1.24.0",
@@ -53,8 +53,8 @@ class StellarAdapter extends abstract_adapter_1.AbstractAdapter {
53
53
  });
54
54
  const balancePromises = assets.map(async (asset) => {
55
55
  try {
56
- const resp = await this.public.getSACBalance(userAddress, asset, stellar_sdk_1.Networks.PUBLIC);
57
- return resp.balanceEntry ? new bignumber_js_1.default(resp.balanceEntry.amount) : new bignumber_js_1.default(0);
56
+ const resp = await this.public.getTrustline(userAddress, asset);
57
+ return new bignumber_js_1.default(resp.balance().toString());
58
58
  }
59
59
  catch (err) {
60
60
  console.error(err);