@streamflow/stream 6.0.2 → 6.0.3

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.
@@ -149,12 +149,11 @@ exports.signAllTransactionWithRecipients = signAllTransactionWithRecipients;
149
149
  function sendAndConfirmStreamRawTransaction(connection, batchItem) {
150
150
  var _a, _b;
151
151
  return __awaiter(this, void 0, void 0, function () {
152
- var rawTx, _c, lastValidBlockHeight, signature, recentBlockhash, confirmationStrategy, completedTxSignature, error_1;
152
+ var _c, lastValidBlockHeight, signature, recentBlockhash, confirmationStrategy, completedTxSignature, error_1;
153
153
  return __generator(this, function (_d) {
154
154
  switch (_d.label) {
155
155
  case 0:
156
156
  _d.trys.push([0, 2, , 3]);
157
- rawTx = batchItem.tx.serialize();
158
157
  _c = batchItem.tx, lastValidBlockHeight = _c.lastValidBlockHeight, signature = _c.signature, recentBlockhash = _c.recentBlockhash;
159
158
  if (!lastValidBlockHeight || !signature || !recentBlockhash)
160
159
  throw { recipient: batchItem.recipient, error: "no recent blockhash" };
@@ -163,7 +162,7 @@ function sendAndConfirmStreamRawTransaction(connection, batchItem) {
163
162
  signature: bs58_1.default.encode(signature),
164
163
  blockhash: recentBlockhash,
165
164
  };
166
- return [4 /*yield*/, (0, web3_js_1.sendAndConfirmRawTransaction)(connection, rawTx, confirmationStrategy)];
165
+ return [4 /*yield*/, (0, solana_1.executeTransaction)(connection, batchItem.tx, confirmationStrategy)];
167
166
  case 1:
168
167
  completedTxSignature = _d.sent();
169
168
  return [2 /*return*/, __assign(__assign({}, batchItem), { signature: completedTxSignature })];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamflow/stream",
3
- "version": "6.0.2",
3
+ "version": "6.0.3",
4
4
  "description": "JavaScript SDK to interact with Streamflow protocol.",
5
5
  "homepage": "https://github.com/streamflow-finance/js-sdk/",
6
6
  "main": "dist/index.js",
@@ -35,7 +35,7 @@
35
35
  "lint": "eslint --fix .",
36
36
  "prepublishOnly": "npm run lint && npm test && npm run build"
37
37
  },
38
- "gitHead": "53a78cbfcb7053bf2b9b267ad8f678cade3e6fe1",
38
+ "gitHead": "d8f882dcb32394efb4ca997fff05e8c30128f14f",
39
39
  "devDependencies": {
40
40
  "@streamflow/eslint-config": "6.0.0",
41
41
  "@types/bn.js": "5.1.1",
@@ -54,7 +54,7 @@
54
54
  "@solana/spl-token": "0.3.6",
55
55
  "@solana/wallet-adapter-base": "0.9.19",
56
56
  "@solana/web3.js": "1.70.1",
57
- "@streamflow/common": "6.0.2",
57
+ "@streamflow/common": "6.0.3",
58
58
  "@suiet/wallet-kit": "0.2.22",
59
59
  "aptos": "1.4.0",
60
60
  "bn.js": "5.2.1",