diff --git a/integration/src/wallets/xdefi.ts b/integration/src/wallets/xdefi.ts index 600654eeb..c1992a605 100644 --- a/integration/src/wallets/xdefi.ts +++ b/integration/src/wallets/xdefi.ts @@ -77,6 +77,10 @@ export async function createWallet(): Promise { const adapter = xdefi.XDEFIAdapter.useKeyring(new core.Keyring()); const wallet = await adapter.pairDevice(); + if (!wallet) { + throw new Error("Unable to pair XDEFIWallet!"); + } + wallet.ethSignTx = jest .fn() .mockReturnValueOnce(mockSignEthTxResponse)