Skip to content

Commit

Permalink
Update App.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometheo authored Aug 27, 2021
1 parent ab7968b commit f2f0b4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ function App() {
async function faucet() {
if (typeof window.ethereum !== 'undefined') {
const provider = new ethers.providers.Web3Provider(window.ethereum);
window.ethereum.request({
method: 'eth_requestAccounts'
});
const signer = provider.getSigner();
const contract = new ethers.Contract(minterAddress, Abi.abi, signer);
try {
Expand Down

0 comments on commit f2f0b4b

Please sign in to comment.