@typus/typus-sdk 1.7.16 → 1.7.17

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.
@@ -105,6 +105,9 @@ function updatePriceFeeds(pythClient, tx, updates, feedIds, suiCoin) {
105
105
  case 3:
106
106
  baseUpdateFee = _a.sent();
107
107
  coins = tx.splitCoins(suiCoin !== null && suiCoin !== void 0 ? suiCoin : tx.gas, feedIds.map(function () { return tx.pure.u64(baseUpdateFee); }));
108
+ if (suiCoin) {
109
+ tx.moveCall({ target: "0x2::coin::destroy_zero", arguments: [suiCoin], typeArguments: [constants_1.tokenType.MAINNET.SUI] });
110
+ }
108
111
  return [4 /*yield*/, pythClient.client.executePriceFeedUpdates(tx, packageId, feedIds, priceUpdatesHotPotato, coins)];
109
112
  case 4: return [2 /*return*/, _a.sent()];
110
113
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typus/typus-sdk",
3
3
  "author": "Typus",
4
4
  "description": "typus sdk",
5
- "version": "1.7.16",
5
+ "version": "1.7.17",
6
6
  "resolutions": {
7
7
  "@mysten/sui": "1.30.0"
8
8
  },