@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.
@@ -2,7 +2,7 @@
2
2
  "manifest_version": 3,
3
3
  "name": "Rose Wallet",
4
4
  "homepage_url": "https://nockchain.net",
5
- "version": "0.1.4.7",
5
+ "version": "0.1.4.8",
6
6
  "description": "Rose Wallet - Browser Wallet for Nockchain",
7
7
  "icons": {
8
8
  "16": "icons/rose16.png",
@@ -509,7 +509,7 @@ export class Vault {
509
509
 
510
510
  // Reset in-memory state
511
511
  this.state = {
512
- locked: true,
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 irisRawTx = wasm.RawTx.fromProtobuf(params.rawTx);
1482
- const irisNotes = params.notes.map(n => wasm.Note.fromProtobuf(n));
1483
- const irisSpendConditions = params.spendConditions.map(sc =>
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nockchain/rose",
3
- "version": "0.1.4-nightly.7",
3
+ "version": "0.1.4-nightly.8",
4
4
  "description": "Rose - Chrome Wallet Extension for Nockchain",
5
5
  "type": "module",
6
6
  "scripts": {