Skip to content

Commit

Permalink
chore: remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
Cussone committed Oct 30, 2024
1 parent def3210 commit 56083f4
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ export const connect = async ({
} // otherwise fallback to modal
}

// console.log("connectors?.length", connectors?.length)

const modalWallets: ModalWallet[] = mapModalWallets({
availableConnectors,
installedWallets,
Expand All @@ -153,34 +151,6 @@ export const connect = async ({
target: getModalTarget(),
props: {
dappName,
// callback: async (connector: StarknetkitConnector | null) => {
// try {
// selectedConnector = connector
// if (resultType === "wallet") {
// const connectorData = (await connector?.connect()) ?? null
// if (connector !== null) {
// setStarknetLastConnectedWallet(connector.id)
// }
//
// resolve({
// connector,
// connectorData,
// wallet: connector?.wallet ?? null,
// })
// } else {
// resolve({
// connector,
// wallet: null,
// connectorData: null,
// })
// }
// } catch (error) {
// reject(error)
// } finally {
// setTimeout(() => modal.$destroy())
// }
// },
// theme: modalTheme === "system" ? null : (modalTheme ?? null),
callback: async (
modalWallet: ModalWallet | null,
useFallback: boolean = false,
Expand Down

0 comments on commit 56083f4

Please sign in to comment.