@btc-vision/transaction 1.0.122 → 1.0.123
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/browser/_version.d.ts +1 -1
- package/browser/index.js +1 -1
- package/build/_version.d.ts +1 -1
- package/build/_version.js +1 -1
- package/build/transaction/builders/SharedInteractionTransaction.js +4 -4
- package/package.json +1 -2
- package/src/_version.ts +1 -1
- package/src/transaction/builders/SharedInteractionTransaction.ts +16 -5
package/build/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.0.
|
|
1
|
+
export declare const version = "1.0.123";
|
package/build/_version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.0.
|
|
1
|
+
export const version = '1.0.123';
|
|
@@ -90,12 +90,12 @@ export class SharedInteractionTransaction extends TransactionBuilder {
|
|
|
90
90
|
}
|
|
91
91
|
for (let i = 0; i < transaction.data.inputs.length; i++) {
|
|
92
92
|
if (i === 0) {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
transaction.finalizeInput(
|
|
93
|
+
await this.signInput(transaction, transaction.data.inputs[i], i, this.scriptSigner);
|
|
94
|
+
await this.signInput(transaction, transaction.data.inputs[i], i, this.getSignerKey());
|
|
95
|
+
transaction.finalizeInput(i, this.customFinalizer);
|
|
96
96
|
}
|
|
97
97
|
else {
|
|
98
|
-
|
|
98
|
+
await this.signInput(transaction, transaction.data.inputs[i], i, this.getSignerKey());
|
|
99
99
|
transaction.finalizeInput(i);
|
|
100
100
|
}
|
|
101
101
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@btc-vision/transaction",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.123",
|
|
5
5
|
"author": "BlobMaster41",
|
|
6
6
|
"description": "OPNet transaction library allows you to create and sign transactions for the OPNet network.",
|
|
7
7
|
"engines": {
|
|
@@ -102,7 +102,6 @@
|
|
|
102
102
|
"babel-preset-react": "^6.24.1",
|
|
103
103
|
"babelify": "^10.0.0",
|
|
104
104
|
"bech32": "^2.0.0",
|
|
105
|
-
"bignumber.js": "^9.1.2",
|
|
106
105
|
"bip32": "^5.0.0-rc.0",
|
|
107
106
|
"browserify-zlib": "^0.2.0",
|
|
108
107
|
"buffer": "^6.0.3",
|
package/src/_version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.0.
|
|
1
|
+
export const version = '1.0.123';
|
|
@@ -189,12 +189,23 @@ export abstract class SharedInteractionTransaction<
|
|
|
189
189
|
for (let i = 0; i < transaction.data.inputs.length; i++) {
|
|
190
190
|
if (i === 0) {
|
|
191
191
|
// multi sig input
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
await this.signInput(transaction, transaction.data.inputs[i], i, this.scriptSigner);
|
|
193
|
+
await this.signInput(
|
|
194
|
+
transaction,
|
|
195
|
+
transaction.data.inputs[i],
|
|
196
|
+
i,
|
|
197
|
+
this.getSignerKey(),
|
|
198
|
+
);
|
|
199
|
+
|
|
200
|
+
transaction.finalizeInput(i, this.customFinalizer);
|
|
196
201
|
} else {
|
|
197
|
-
|
|
202
|
+
await this.signInput(
|
|
203
|
+
transaction,
|
|
204
|
+
transaction.data.inputs[i],
|
|
205
|
+
i,
|
|
206
|
+
this.getSignerKey(),
|
|
207
|
+
);
|
|
208
|
+
|
|
198
209
|
transaction.finalizeInput(i);
|
|
199
210
|
}
|
|
200
211
|
}
|