diff --git a/apps/demo-react/providers/sdk.tsx b/apps/demo-react/providers/sdk.tsx index 0c0e5a9f..e5da682b 100644 --- a/apps/demo-react/providers/sdk.tsx +++ b/apps/demo-react/providers/sdk.tsx @@ -46,6 +46,7 @@ export const LidoSDKProvider: React.FC = ({ children }) => { } }; } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [isConnected]); const contextValue = useMemo(() => { diff --git a/packages/connectors/ledger-connector/src/hid/connector.ts b/packages/connectors/ledger-connector/src/hid/connector.ts index 6bd4be3b..f6117547 100644 --- a/packages/connectors/ledger-connector/src/hid/connector.ts +++ b/packages/connectors/ledger-connector/src/hid/connector.ts @@ -92,14 +92,14 @@ export function ledgerHIDConnector({ const id = chainId.toString(16); emitter.emit('change', { chainId: Number(chainId) }); - return ( + return Promise.resolve( chains.find((x) => x.id === chainId) ?? { id: chainId, name: `Chain ${id}`, network: `${id}`, nativeCurrency: { decimals: 18, name: 'Ether', symbol: 'ETH' }, rpcUrls: { default: { http: [''] }, public: { http: [''] } }, - } + }, ); },