@cityofzion/bs-solana 3.1.13 → 3.1.15
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.
|
@@ -103,7 +103,11 @@ class WalletConnectServiceSolana {
|
|
|
103
103
|
process: async (args) => {
|
|
104
104
|
const parsedTransaction = __classPrivateFieldGet(this, _WalletConnectServiceSolana_instances, "m", _WalletConnectServiceSolana_parseTransaction).call(this, args.params.transaction);
|
|
105
105
|
const signedTransaction = await __classPrivateFieldGet(this, _WalletConnectServiceSolana_service, "f")._signTransaction(parsedTransaction, args.account);
|
|
106
|
-
|
|
106
|
+
const signedTransactionBytes = solanaKit.getBase64Encoder().encode(signedTransaction);
|
|
107
|
+
const decodedSignedTransaction = solanaKit.getTransactionCodec().decode(signedTransactionBytes);
|
|
108
|
+
const [signatureBytes] = Object.values(decodedSignedTransaction.signatures);
|
|
109
|
+
const signature = solanaKit.getBase58Codec().decode(new Uint8Array(signatureBytes));
|
|
110
|
+
return { signature };
|
|
107
111
|
},
|
|
108
112
|
});
|
|
109
113
|
_WalletConnectServiceSolana_signAllTransactionsHandler.set(this, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cityofzion/bs-solana",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.15",
|
|
4
4
|
"repository": "https://github.com/CityOfZion/blockchain-services",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Coz",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"axios": "~1.15.0",
|
|
19
19
|
"date-fns": "~4.1.0",
|
|
20
20
|
"zod": "~4.3.6",
|
|
21
|
-
"@cityofzion/blockchain-service": "3.1.
|
|
21
|
+
"@cityofzion/blockchain-service": "3.1.15"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@ledgerhq/hw-transport-node-hid": "~6.30.0",
|