Skip to content

Commit c55b9e1

Browse files
dynstwebmaster128
authored andcommitted
silence import/no-named-as-default and save some bundle size
only a single function from this non tree shakeable CJS dependency was needed.
1 parent 2ac48b7 commit c55b9e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ledger-amino/src/ledgerconnector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { assert } from "@cosmjs/utils";
66
import Transport from "@ledgerhq/hw-transport";
77
// eslint-disable-next-line @typescript-eslint/naming-convention
88
import CosmosApp from "@zondax/ledger-cosmos-js";
9-
import semver from "semver";
9+
import semverGte from "semver/functions/gte.js";
1010

1111
const cosmosHdPath = makeCosmoshubPath(0);
1212
const cosmosBech32Prefix = "cosmos";
@@ -125,7 +125,7 @@ export class LedgerConnector {
125125

126126
private async verifyAppVersion(): Promise<void> {
127127
const version = await this.getCosmosAppVersion();
128-
if (!semver.gte(version, this.minLedgerAppVersion)) {
128+
if (!semverGte(version, this.minLedgerAppVersion)) {
129129
throw new Error(
130130
`Outdated version: Please update ${this.ledgerAppName} Ledger App to the latest version.`,
131131
);

0 commit comments

Comments
 (0)