Skip to content

Commit

Permalink
Make code more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsmiarowski committed Jul 24, 2023
1 parent 66224b1 commit aaacbe7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/web3/connectors/ledgerLive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ export class LedgerLiveConnector extends AbstractConnector {
}

public async activate(): Promise<ConnectorUpdate> {
if (!this.supportedChainIds) {
throw new Error("Supported chain ids are not defined.")
}
let account = ""
const connectKit = await this.connectKitPromise
const chainId = Number(Object.keys(this.rpc)[0])
const chainId = this.supportedChainIds[0]
const checkSupportResult = connectKit.checkSupport({
chains: [chainId],
walletConnectVersion: 2,
Expand Down

0 comments on commit aaacbe7

Please sign in to comment.