Skip to content

Commit

Permalink
Bump GridPlus SDK (#26)
Browse files Browse the repository at this point in the history
* Bump GridPlus SDK

* Remove skipCache param

* Fix Snyk warning

* Bump Ledger

* Bump hw-transport-mocker

* Bump GridPlus SDK again

* Bump GridPlus SDK again

* Bump GridPlus SDK again

* Bump version
  • Loading branch information
FrederikBolding authored Feb 8, 2022
1 parent 095a5ff commit 3295b0b
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 230 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mycrypto/wallets",
"version": "1.4.2",
"version": "1.4.3",
"description": "Wallet abstractions to be used throughout the MyCrypto product suite.",
"repository": "MyCryptoHQ/wallets",
"author": "MyCrypto",
Expand Down Expand Up @@ -44,14 +44,14 @@
"@ethersproject/strings": "5.5.0",
"@ethersproject/transactions": "5.5.0",
"@ethersproject/wallet": "5.5.0",
"@ledgerhq/hw-app-eth": "6.18.0",
"@ledgerhq/hw-transport": "6.11.2",
"@ledgerhq/hw-transport-node-hid-noevents": "6.11.2",
"@ledgerhq/hw-app-eth": "6.23.0",
"@ledgerhq/hw-transport": "6.20.0",
"@ledgerhq/hw-transport-node-hid-noevents": "6.20.0",
"@ledgerhq/hw-transport-u2f": "5.36.0-deprecated",
"@ledgerhq/hw-transport-webhid": "6.11.2",
"@ledgerhq/hw-transport-webusb": "6.11.2",
"@ledgerhq/hw-transport-webhid": "6.20.0",
"@ledgerhq/hw-transport-webusb": "6.20.0",
"ethereumjs-wallet": "1.0.2",
"gridplus-sdk": "0.9.2",
"gridplus-sdk": "0.9.7",
"superstruct": "0.15.3",
"trezor-connect": "8.2.2"
},
Expand All @@ -62,7 +62,7 @@
"@babel/plugin-proposal-optional-chaining": "7.13.12",
"@babel/preset-env": "^7.13.12",
"@babel/preset-typescript": "^7.13.0",
"@ledgerhq/hw-transport-mocker": "6.3.0",
"@ledgerhq/hw-transport-mocker": "6.20.0",
"@types/jest": "^26.0.22",
"@types/ledgerhq__hw-transport-u2f": "4.21.2",
"@typescript-eslint/eslint-plugin": "^4.18.0",
Expand Down
6 changes: 2 additions & 4 deletions src/implementations/deterministic/gridplus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ export class GridPlusWalletInstance implements Wallet {
const getAddresses = promisify(client.getAddresses).bind(client);
const addresses = await getAddresses({
startPath: getConvertedPath(this.path),
n: 1,
skipCache: true
n: 1
}).catch(wrapGridPlusError);

this.address = addresses[0] as TAddress;
Expand Down Expand Up @@ -264,8 +263,7 @@ export class GridPlusWallet extends HardwareWallet {
const dPath = getFullPath(path, offset);
const addresses: string[] = await getAddresses({
startPath: getConvertedPath(dPath),
n: limit,
skipCache: true
n: limit
}).catch(wrapGridPlusError);

return addresses.map((address, i) => {
Expand Down
1 change: 0 additions & 1 deletion src/types/vendor/gridplus-sdk/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ declare module 'gridplus-sdk' {
interface AddressesOpts {
startPath: number[];
n: number;
skipCache: boolean;
}

export class Client {
Expand Down
Loading

0 comments on commit 3295b0b

Please sign in to comment.