Skip to content

Instantly share code, notes, and snippets.

@chiptus
Created July 12, 2020 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chiptus/6433fcb4dc8e1cff7801e7db7b36e334 to your computer and use it in GitHub Desktop.
Save chiptus/6433fcb4dc8e1cff7801e7db7b36e334 to your computer and use it in GitHub Desktop.
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