@lucid-evolution/wallet 0.1.5 → 0.1.6
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 +7 -2
- package/dist/index.js +7 -2
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -161,8 +161,13 @@ function discoverOwnUsedTxKeyHashes(tx, ownKeyHashes, ownUtxos) {
|
|
|
161
161
|
const rewardAddresses = withdrawals2.keys();
|
|
162
162
|
for (let i = 0; i < rewardAddresses.len(); i++) {
|
|
163
163
|
const credential = rewardAddresses.get(i).payment();
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
switch (credential.kind()) {
|
|
165
|
+
case 0:
|
|
166
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
167
|
+
break;
|
|
168
|
+
case 1:
|
|
169
|
+
usedKeyHashes.push(credential.as_script()?.to_hex());
|
|
170
|
+
break;
|
|
166
171
|
}
|
|
167
172
|
}
|
|
168
173
|
}
|
package/dist/index.js
CHANGED
|
@@ -121,8 +121,13 @@ function discoverOwnUsedTxKeyHashes(tx, ownKeyHashes, ownUtxos) {
|
|
|
121
121
|
const rewardAddresses = withdrawals2.keys();
|
|
122
122
|
for (let i = 0; i < rewardAddresses.len(); i++) {
|
|
123
123
|
const credential = rewardAddresses.get(i).payment();
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
switch (credential.kind()) {
|
|
125
|
+
case 0:
|
|
126
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
127
|
+
break;
|
|
128
|
+
case 1:
|
|
129
|
+
usedKeyHashes.push(credential.as_script()?.to_hex());
|
|
130
|
+
break;
|
|
126
131
|
}
|
|
127
132
|
}
|
|
128
133
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucid-evolution/wallet",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@dcspark/cardano-multiplatform-lib-nodejs": "^5.2.0",
|
|
26
|
-
"@lucid-evolution/bip39": "0.2.
|
|
27
|
-
"@lucid-evolution/core-types": "0.1.
|
|
28
|
-
"@lucid-evolution/core-utils": "0.1.
|
|
29
|
-
"@lucid-evolution/utils": "0.1.
|
|
30
|
-
"@lucid-evolution/sign_data": "0.1.
|
|
26
|
+
"@lucid-evolution/bip39": "0.2.5",
|
|
27
|
+
"@lucid-evolution/core-types": "0.1.4",
|
|
28
|
+
"@lucid-evolution/core-utils": "0.1.4",
|
|
29
|
+
"@lucid-evolution/utils": "0.1.6",
|
|
30
|
+
"@lucid-evolution/sign_data": "0.1.4"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^20.11.24",
|