@ckb-ccc/joy-id 0.0.5-alpha.11 → 0.0.5-alpha.12
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/ckb/index.js +2 -2
- package/dist.commonjs/ckb/index.js +2 -2
- package/package.json +2 -2
- package/src/ckb/index.ts +2 -2
package/dist/ckb/index.js
CHANGED
|
@@ -126,7 +126,7 @@ export class CkbSigner extends ccc.Signer {
|
|
|
126
126
|
const tx = ccc.Transaction.from(txLike);
|
|
127
127
|
const { script } = await this.getAddressObj();
|
|
128
128
|
const config = this.getConfig();
|
|
129
|
-
const witnessIndexes = await tx.inputs.map(async (input, i) => {
|
|
129
|
+
const witnessIndexes = await Promise.all(tx.inputs.map(async (input, i) => {
|
|
130
130
|
await input.completeExtraInfos(this.client);
|
|
131
131
|
if (!input.cellOutput) {
|
|
132
132
|
throw Error("Unable to resolve inputs info");
|
|
@@ -135,7 +135,7 @@ export class CkbSigner extends ccc.Signer {
|
|
|
135
135
|
return;
|
|
136
136
|
}
|
|
137
137
|
return i;
|
|
138
|
-
});
|
|
138
|
+
}));
|
|
139
139
|
const res = await createPopup(buildJoyIDURL({
|
|
140
140
|
...config,
|
|
141
141
|
tx: JSON.parse(tx.stringify()),
|
|
@@ -129,7 +129,7 @@ class CkbSigner extends core_1.ccc.Signer {
|
|
|
129
129
|
const tx = core_1.ccc.Transaction.from(txLike);
|
|
130
130
|
const { script } = await this.getAddressObj();
|
|
131
131
|
const config = this.getConfig();
|
|
132
|
-
const witnessIndexes = await tx.inputs.map(async (input, i) => {
|
|
132
|
+
const witnessIndexes = await Promise.all(tx.inputs.map(async (input, i) => {
|
|
133
133
|
await input.completeExtraInfos(this.client);
|
|
134
134
|
if (!input.cellOutput) {
|
|
135
135
|
throw Error("Unable to resolve inputs info");
|
|
@@ -138,7 +138,7 @@ class CkbSigner extends core_1.ccc.Signer {
|
|
|
138
138
|
return;
|
|
139
139
|
}
|
|
140
140
|
return i;
|
|
141
|
-
});
|
|
141
|
+
}));
|
|
142
142
|
const res = await (0, common_2.createPopup)((0, common_1.buildJoyIDURL)({
|
|
143
143
|
...config,
|
|
144
144
|
tx: JSON.parse(tx.stringify()),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckb-ccc/joy-id",
|
|
3
|
-
"version": "0.0.5-alpha.
|
|
3
|
+
"version": "0.0.5-alpha.12",
|
|
4
4
|
"description": "Connector's support for JoyID",
|
|
5
5
|
"author": "Hanssen0 <hanssen0@hanssen0.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"@joyid/ckb": "^0.0.11",
|
|
43
43
|
"@joyid/common": "^0.0.3"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "0d502bed4e9485d36ff4c1070048e55c99de0236"
|
|
46
46
|
}
|
package/src/ckb/index.ts
CHANGED
|
@@ -179,7 +179,7 @@ export class CkbSigner extends ccc.Signer {
|
|
|
179
179
|
|
|
180
180
|
const config = this.getConfig();
|
|
181
181
|
|
|
182
|
-
const witnessIndexes = await tx.inputs.map(async (input, i) => {
|
|
182
|
+
const witnessIndexes = await Promise.all(tx.inputs.map(async (input, i) => {
|
|
183
183
|
await input.completeExtraInfos(this.client);
|
|
184
184
|
|
|
185
185
|
if (!input.cellOutput) {
|
|
@@ -191,7 +191,7 @@ export class CkbSigner extends ccc.Signer {
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
return i;
|
|
194
|
-
});
|
|
194
|
+
}));
|
|
195
195
|
|
|
196
196
|
const res = await createPopup(
|
|
197
197
|
buildJoyIDURL(
|