@shapeshiftoss/hdwallet-gridplus 1.62.10-alpha.2 → 1.62.10-alpha.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/hdwallet-gridplus",
3
- "version": "1.62.10-alpha.2",
3
+ "version": "1.62.10-alpha.3",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,7 +20,7 @@
20
20
  "@ethereumjs/rlp": "5.0.2",
21
21
  "@ethereumjs/tx": "5.4.0",
22
22
  "@metamask/eth-sig-util": "^7.0.0",
23
- "@shapeshiftoss/hdwallet-core": "1.62.10-alpha.2",
23
+ "@shapeshiftoss/hdwallet-core": "1.62.10-alpha.3",
24
24
  "bech32": "^1.1.4",
25
25
  "bs58": "^5.0.0",
26
26
  "crypto-js": "^4.2.0",
@@ -35,5 +35,5 @@
35
35
  "@ethereumjs/common",
36
36
  "@ethereumjs/tx"
37
37
  ],
38
- "gitHead": "1939f8fa5ec5b2a4e3053ecf9fa88b64efc6f88e"
38
+ "gitHead": "66bab611a306a89a7cb39337e7c53ab2165e6f30"
39
39
  }
package/src/bitcoin.ts CHANGED
@@ -184,8 +184,6 @@ export async function btcSignTx(client: Client, msg: core.BTCSignTx): Promise<co
184
184
 
185
185
  const tx = psbt.extractTransaction(true);
186
186
 
187
- console.log({ msg, tx, psbt });
188
-
189
187
  const signatures = psbt.data.inputs.map((input) =>
190
188
  input.partialSig ? Buffer.from(input.partialSig[0].signature).toString("hex") : ""
191
189
  );
package/src/gridplus.ts CHANGED
@@ -9,7 +9,7 @@ import * as mayachain from "./mayachain";
9
9
  import * as solana from "./solana";
10
10
  import * as thorchain from "./thorchain";
11
11
 
12
- const ZERO_BUFFER = Buffer.alloc(32)
12
+ const ZERO_BUFFER = Buffer.alloc(32);
13
13
 
14
14
  export function isGridPlus(wallet: core.HDWallet): wallet is GridPlusHDWallet {
15
15
  return isObject(wallet) && (wallet as any)._isGridPlus;
@@ -362,13 +362,13 @@ export class GridPlusHDWallet
362
362
  this.client = undefined;
363
363
  }
364
364
 
365
- async getActiveWallet(): Promise<string | undefined> {
365
+ async getActiveWalletId(): Promise<string | undefined> {
366
366
  if (!this.client) throw new Error("Device not connected");
367
367
 
368
368
  const { external, internal } = await this.client.fetchActiveWallet();
369
369
 
370
- if (!external.uid.equals(ZERO_BUFFER)) return external.uid.toString("hex")
371
- if (!internal.uid.equals(ZERO_BUFFER)) return internal.uid.toString("hex")
370
+ if (!external.uid.equals(ZERO_BUFFER)) return external.uid.toString("hex");
371
+ if (!internal.uid.equals(ZERO_BUFFER)) return internal.uid.toString("hex");
372
372
  }
373
373
 
374
374
  async getPublicKeys(msg: Array<core.GetPublicKey>): Promise<Array<core.PublicKey | null>> {