Skip to content

Commit

Permalink
Fix for Token Deployer
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshpw committed Nov 6, 2024
1 parent a5012e4 commit 9268543
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/modules/explorer/pages/DAOList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ export const DAOList: React.FC = () => {
return []
}, [daos, searchText, account])

console.log({ daos, currentDAOs, myDAOs })

const filterDAOs = (filter: string) => {
setSearchText(filter.trim())
}
Expand Down
8 changes: 6 additions & 2 deletions src/services/beacon/hooks/useTezos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export const useTezos = (): WalletConnectReturn => {
isConnected: isEtherlinkConnected,
connect: connectWithWagmi,
disconnect: disconnectEtherWallet,
network: etherlinkNetwork
network: etherlinkNetwork,
provider: ethProvider,
signer: ethSigner
} = useContext(EtherlinkContext)

const queryClient = useQueryClient()
Expand Down Expand Up @@ -209,7 +211,9 @@ export const useTezos = (): WalletConnectReturn => {
isEtherlink: network?.startsWith("etherlink"),
etherlink: {
isConnected: isEtherlinkConnected,
account: ethAccount
account: ethAccount,
provider: ethProvider,
signer: ethSigner
}
}
}
5 changes: 5 additions & 0 deletions src/services/wagmi/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { disconnect as disconnectEtherlink } from "@wagmi/core"
import { config as wagmiConfig } from "services/wagmi/config"
import { etherlink, etherlinkTestnet } from "wagmi/chains"
import { useSIWE, useModal, SIWESession } from "connectkit"
import { useEthersProvider, useEthersSigner } from "./ethers"

interface EtherlinkType {
isConnected: boolean
Expand All @@ -21,6 +22,8 @@ export const EtherlinkContext = createContext<any | undefined>(undefined)

export const EtherlinkProvider: React.FC<{ children: ReactNode }> = ({ children }) => {
const { setOpen } = useModal()
const provider = useEthersProvider()
const signer = useEthersSigner()
const { chains, switchChain } = useSwitchChain()
// const { data, isReady, isRejected, isLoading, isSignedIn, signOut, signIn, error } = useSIWE({
// onSignIn: (session?: SIWESession) => {
Expand Down Expand Up @@ -58,6 +61,8 @@ export const EtherlinkProvider: React.FC<{ children: ReactNode }> = ({ children
<EtherlinkContext.Provider
value={{
isConnected,
provider,
signer,
account: {
address: address || ""
},
Expand Down

0 comments on commit 9268543

Please sign in to comment.