@getpara/stellar-sdk-v14-integration 3.15.0 → 3.16.0

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.
@@ -104,10 +104,7 @@ class ParaStellarSigner {
104
104
  walletId: this.currentWalletId,
105
105
  messageBase64: bytes.toString("base64")
106
106
  }, canonicalTransaction ? { canonicalTransaction } : {}));
107
- if (res.transactionReviewUrl) {
108
- throw new import_core_sdk.TransactionReviewError(res.transactionReviewUrl);
109
- }
110
- return Buffer.from(res.signature, "base64");
107
+ return Buffer.from((0, import_core_sdk.requireSuccessfulSignature)(res), "base64");
111
108
  });
112
109
  }
113
110
  signTransactionXDR(transactionXDR, networkPassphrase) {
@@ -36,7 +36,7 @@ var __async = (__this, __arguments, generator) => {
36
36
  };
37
37
  import { TransactionBuilder, hash } from "@stellar/stellar-sdk";
38
38
  import {
39
- TransactionReviewError
39
+ requireSuccessfulSignature
40
40
  } from "@getpara/core-sdk";
41
41
  import { deriveStellarAddress } from "./utils.js";
42
42
  class ParaStellarSigner {
@@ -85,10 +85,7 @@ class ParaStellarSigner {
85
85
  walletId: this.currentWalletId,
86
86
  messageBase64: bytes.toString("base64")
87
87
  }, canonicalTransaction ? { canonicalTransaction } : {}));
88
- if (res.transactionReviewUrl) {
89
- throw new TransactionReviewError(res.transactionReviewUrl);
90
- }
91
- return Buffer.from(res.signature, "base64");
88
+ return Buffer.from(requireSuccessfulSignature(res), "base64");
92
89
  });
93
90
  }
94
91
  signTransactionXDR(transactionXDR, networkPassphrase) {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@getpara/stellar-sdk-v14-integration",
3
- "version": "3.15.0",
3
+ "version": "3.16.0",
4
4
  "dependencies": {
5
- "@getpara/core-sdk": "3.15.0",
5
+ "@getpara/core-sdk": "3.16.0",
6
6
  "bs58": "^6.0.0"
7
7
  },
8
8
  "devDependencies": {
@@ -36,5 +36,5 @@
36
36
  "sideEffects": false,
37
37
  "types": "dist/types/index.d.ts",
38
38
  "typings": "dist/types/index.d.ts",
39
- "gitHead": "856f39beedd86c8a49c74a18029f3fffa21d456f"
39
+ "gitHead": "4a41b3565fa754c272ddcd84070f7e5b4e5c011d"
40
40
  }