{"size": 256, "ext": "js", "max_stars_repo_path": "src/utils/useSigner.js", "max_stars_repo_name": "exyrium/dapp-exyrium", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/utils/useSigner.js", "max_issues_repo_name": "exyrium/dapp-exyrium", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/utils/useSigner.js", "max_forks_repo_name": "exyrium/dapp-exyrium", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.6, "max_line_length": 70, "alphanum_fraction": 0.73828125}
import { ethers } from "ethers";

export async function Signer() {
  const provider = new ethers.providers.Web3Provider(window.ethereum);
  const accounts = await provider.listAccounts();

  let signer = provider.getSigner(accounts[0]);

  return signer;
}