From 2f8e01288d47f0a511d20155bd2cbf9c6553f7ec Mon Sep 17 00:00:00 2001 From: Nicolas Brugneaux Date: Tue, 12 Nov 2024 11:56:48 +0100 Subject: [PATCH] test: test only on legacy app --- .../wallets/wallet-ledger/src/ledger-wallet.test.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.test.ts b/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.test.ts index e865fa3bf..a0db2d497 100644 --- a/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.test.ts +++ b/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.test.ts @@ -488,6 +488,15 @@ describe('LedgerWallet class', () => { expect(true).toBeTruthy() return } + + const { version } = await hardwareWallet.ledger?.getAppConfiguration()! + if ( + meetsVersionRequirements(version, { minimum: LedgerWallet.MIN_VERSION_EIP1559 }) + ) { + expect(true).toBeTruthy() + return + } + wallet = new LedgerWallet( undefined, undefined, @@ -498,8 +507,6 @@ describe('LedgerWallet class', () => { mockForceValidation = jest.fn((): void => { // do nothing }) - mockLedger(wallet, mockForceValidation, LedgerWallet.MIN_VERSION_TOKEN_DATA) - await wallet.init() const warnSpy = jest.spyOn(console, 'warn') // setup complete