inflearn logo
Course

Course

Instructor

Taylor's Posts

Taylor Taylor

@taylor

Reviews Written
2
Average Rating
5.0

Posts 2

Q&A

메타마스크 창이 안뜨네요 ㅜ

해당 문제로 강사님께 문의하고 답변 받아 해결하였습니다! 저와 똑같은 문제 경험하고 계시는 분은 아래의 코드를 참고 해주세요. initWeb3: async function() { if (typeof window !== 'undefined' && typeof window.ethereum !== 'undefined') { try { await window.ethereum.request({ method: 'eth_requestAccounts' }) App.web3Provider = window.ethereum; web3 = new Web3(window.ethereum) } catch (err) { console.log(err.message); } } else { App.web3Provider = new web3.providers.HttpProvider('http://localhost:8545'); web3 = new Web3(App.web3Provider); } return App.initContract(); }

Likes
0
Comments
2
Viewcount
482