@getpara/solana-web3.js-v1-integration 3.14.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.
|
@@ -86,10 +86,7 @@ class ParaSolanaWeb3Signer {
|
|
|
86
86
|
walletId: this.currentWalletId,
|
|
87
87
|
messageBase64: bytes.toString("base64")
|
|
88
88
|
}, canonicalTransaction ? { canonicalTransaction } : {}));
|
|
89
|
-
|
|
90
|
-
throw new import_core_sdk.TransactionReviewError(res.transactionReviewUrl);
|
|
91
|
-
}
|
|
92
|
-
return Buffer.from(res.signature, "base64");
|
|
89
|
+
return Buffer.from((0, import_core_sdk.requireSuccessfulSignature)(res), "base64");
|
|
93
90
|
});
|
|
94
91
|
}
|
|
95
92
|
signTransaction(transaction) {
|
|
@@ -36,9 +36,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
36
36
|
};
|
|
37
37
|
import * as solana from "@solana/web3.js";
|
|
38
38
|
import bs58 from "bs58";
|
|
39
|
-
import {
|
|
40
|
-
TransactionReviewError
|
|
41
|
-
} from "@getpara/core-sdk";
|
|
39
|
+
import { requireSuccessfulSignature } from "@getpara/core-sdk";
|
|
42
40
|
class ParaSolanaWeb3Signer {
|
|
43
41
|
constructor(para, connection, walletId) {
|
|
44
42
|
this.currentWalletId = para.findWalletId(walletId, { type: ["SOLANA"] });
|
|
@@ -58,10 +56,7 @@ class ParaSolanaWeb3Signer {
|
|
|
58
56
|
walletId: this.currentWalletId,
|
|
59
57
|
messageBase64: bytes.toString("base64")
|
|
60
58
|
}, canonicalTransaction ? { canonicalTransaction } : {}));
|
|
61
|
-
|
|
62
|
-
throw new TransactionReviewError(res.transactionReviewUrl);
|
|
63
|
-
}
|
|
64
|
-
return Buffer.from(res.signature, "base64");
|
|
59
|
+
return Buffer.from(requireSuccessfulSignature(res), "base64");
|
|
65
60
|
});
|
|
66
61
|
}
|
|
67
62
|
signTransaction(transaction) {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/solana-web3.js-v1-integration",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.16.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@getpara/core-sdk": "3.
|
|
5
|
+
"@getpara/core-sdk": "3.16.0"
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
8
|
"@solana/web3.js": "^1.98.0",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dist",
|
|
20
20
|
"package.json"
|
|
21
21
|
],
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "4a41b3565fa754c272ddcd84070f7e5b4e5c011d",
|
|
23
23
|
"main": "dist/cjs/index.js",
|
|
24
24
|
"module": "dist/esm/index.js",
|
|
25
25
|
"peerDependencies": {
|