Created
July 12, 2020 09:21
-
-
Save chiptus/6433fcb4dc8e1cff7801e7db7b36e334 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useState } from 'react'; | |
import { Tezos } from '@taquito/taquito'; | |
import { BeaconWallet } from '@taquito/beacon-wallet'; | |
export function useWallet() { | |
const [initialized, setInit] = useState(false); | |
const [address, setAddress] = useState(''); | |
const [error, setError] = useState(''); | |
const [loading, setLoading] = useState(false); | |
return { initialized, address, error, loading, connect }; | |
function connect() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment