@nockchain/rose 0.1.4-nightly.7 → 0.1.4-nightly.8
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/extension/manifest.json +1 -1
- package/extension/shared/vault.ts +4 -10
- package/package.json +1 -1
package/extension/manifest.json
CHANGED
|
@@ -509,7 +509,7 @@ export class Vault {
|
|
|
509
509
|
|
|
510
510
|
// Reset in-memory state
|
|
511
511
|
this.state = {
|
|
512
|
-
locked:
|
|
512
|
+
locked: false,
|
|
513
513
|
accounts: [],
|
|
514
514
|
currentAccountIndex: 0,
|
|
515
515
|
enc: null,
|
|
@@ -1478,15 +1478,9 @@ export class Vault {
|
|
|
1478
1478
|
}
|
|
1479
1479
|
|
|
1480
1480
|
try {
|
|
1481
|
-
const
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
wasm.SpendCondition.fromProtobuf(sc)
|
|
1485
|
-
);
|
|
1486
|
-
const builder = wasm.TxBuilder.fromTx(irisRawTx, irisNotes, irisSpendConditions);
|
|
1487
|
-
builder.sign(key.privateKey);
|
|
1488
|
-
const signedTx = builder.build();
|
|
1489
|
-
return signedTx.toRawTx().toProtobuf();
|
|
1481
|
+
const rawTx = wasm.RawTx.fromProtobuf(params.rawTx);
|
|
1482
|
+
rawTx.signAll(key.privateKey);
|
|
1483
|
+
return rawTx.toProtobuf();
|
|
1490
1484
|
} finally {
|
|
1491
1485
|
if (key !== masterKey) key.free();
|
|
1492
1486
|
masterKey.free();
|