@ckbfs/api 2.0.11 → 2.0.13
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.
|
@@ -351,14 +351,13 @@ async function createAppendV3Transaction(signer, options) {
|
|
|
351
351
|
await preTx.completeInputsByCapacity(signer);
|
|
352
352
|
}
|
|
353
353
|
const witnesses = [];
|
|
354
|
-
var witnessOffsetIndex =
|
|
355
|
-
// add empty witness for signer if ckbfs's lock is the same as signer's lock
|
|
356
|
-
if (address.script.hash() === lock.hash()) {
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
}
|
|
354
|
+
// var witnessOffsetIndex = 1;
|
|
355
|
+
// // add empty witness for signer if ckbfs's lock is the same as signer's lock
|
|
356
|
+
// if (address.script.hash() === lock.hash()) {
|
|
357
|
+
// witnesses.push("0x");
|
|
358
|
+
// }
|
|
360
359
|
// add ckbfs witnesses (skip the first witness which is for signing)
|
|
361
|
-
witnesses.push(...preTx.witnesses
|
|
360
|
+
witnesses.push(...preTx.witnesses);
|
|
362
361
|
// Add empty witnesses for additional signer inputs
|
|
363
362
|
// This is to ensure that the transaction is valid and can be signed
|
|
364
363
|
for (let i = inputsBefore; i < preTx.inputs.length; i++) {
|
package/package.json
CHANGED
|
@@ -520,14 +520,13 @@ export async function createAppendV3Transaction(
|
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
const witnesses: any = [];
|
|
523
|
-
var witnessOffsetIndex =
|
|
524
|
-
// add empty witness for signer if ckbfs's lock is the same as signer's lock
|
|
525
|
-
if (address.script.hash() === lock.hash()) {
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
}
|
|
523
|
+
// var witnessOffsetIndex = 1;
|
|
524
|
+
// // add empty witness for signer if ckbfs's lock is the same as signer's lock
|
|
525
|
+
// if (address.script.hash() === lock.hash()) {
|
|
526
|
+
// witnesses.push("0x");
|
|
527
|
+
// }
|
|
529
528
|
// add ckbfs witnesses (skip the first witness which is for signing)
|
|
530
|
-
witnesses.push(...preTx.witnesses
|
|
529
|
+
witnesses.push(...preTx.witnesses);
|
|
531
530
|
|
|
532
531
|
// Add empty witnesses for additional signer inputs
|
|
533
532
|
// This is to ensure that the transaction is valid and can be signed
|