@meshsdk/wallet 1.9.0-beta.65 → 1.9.0-beta.67
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.
- package/dist/index.cjs +8 -2
- package/dist/index.js +8 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -735,7 +735,13 @@ var EmbeddedWallet = class extends WalletStaticMethods {
|
|
|
735
735
|
*/
|
|
736
736
|
signData(address, payload, accountIndex = 0, keyIndex = 0) {
|
|
737
737
|
try {
|
|
738
|
-
const {
|
|
738
|
+
const {
|
|
739
|
+
baseAddress,
|
|
740
|
+
enterpriseAddress,
|
|
741
|
+
rewardAddress,
|
|
742
|
+
paymentKey,
|
|
743
|
+
stakeKey
|
|
744
|
+
} = this.getAccount(accountIndex, keyIndex);
|
|
739
745
|
const foundAddress = [baseAddress, enterpriseAddress, rewardAddress].find(
|
|
740
746
|
(a) => a.toBech32() === address
|
|
741
747
|
);
|
|
@@ -745,7 +751,7 @@ var EmbeddedWallet = class extends WalletStaticMethods {
|
|
|
745
751
|
);
|
|
746
752
|
return (0, import_core_cst.signData)(payload, {
|
|
747
753
|
address: import_core_cst.Address.fromBech32(address),
|
|
748
|
-
key: paymentKey
|
|
754
|
+
key: address === rewardAddress.toBech32() ? stakeKey : paymentKey
|
|
749
755
|
});
|
|
750
756
|
} catch (error) {
|
|
751
757
|
throw new Error(
|
package/dist/index.js
CHANGED
|
@@ -745,7 +745,13 @@ var EmbeddedWallet = class extends WalletStaticMethods {
|
|
|
745
745
|
*/
|
|
746
746
|
signData(address, payload, accountIndex = 0, keyIndex = 0) {
|
|
747
747
|
try {
|
|
748
|
-
const {
|
|
748
|
+
const {
|
|
749
|
+
baseAddress,
|
|
750
|
+
enterpriseAddress,
|
|
751
|
+
rewardAddress,
|
|
752
|
+
paymentKey,
|
|
753
|
+
stakeKey
|
|
754
|
+
} = this.getAccount(accountIndex, keyIndex);
|
|
749
755
|
const foundAddress = [baseAddress, enterpriseAddress, rewardAddress].find(
|
|
750
756
|
(a) => a.toBech32() === address
|
|
751
757
|
);
|
|
@@ -755,7 +761,7 @@ var EmbeddedWallet = class extends WalletStaticMethods {
|
|
|
755
761
|
);
|
|
756
762
|
return signData(payload, {
|
|
757
763
|
address: Address.fromBech32(address),
|
|
758
|
-
key: paymentKey
|
|
764
|
+
key: address === rewardAddress.toBech32() ? stakeKey : paymentKey
|
|
759
765
|
});
|
|
760
766
|
} catch (error) {
|
|
761
767
|
throw new Error(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshsdk/wallet",
|
|
3
|
-
"version": "1.9.0-beta.
|
|
3
|
+
"version": "1.9.0-beta.67",
|
|
4
4
|
"description": "Wallets - https://meshjs.dev/apis/wallets",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"browser": "./dist/index.js",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"typescript": "^5.3.3"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@meshsdk/common": "1.9.0-beta.
|
|
39
|
-
"@meshsdk/core-cst": "1.9.0-beta.
|
|
40
|
-
"@meshsdk/transaction": "1.9.0-beta.
|
|
38
|
+
"@meshsdk/common": "1.9.0-beta.67",
|
|
39
|
+
"@meshsdk/core-cst": "1.9.0-beta.67",
|
|
40
|
+
"@meshsdk/transaction": "1.9.0-beta.67",
|
|
41
41
|
"@simplewebauthn/browser": "^13.0.0"
|
|
42
42
|
},
|
|
43
43
|
"prettier": "@meshsdk/configs/prettier",
|