inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

Taylor님의 게시글

Taylor Taylor

@taylor

수강평 작성수
2
평균평점
5.0

게시글 2

질문&답변

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

해당 문제로 강사님께 문의하고 답변 받아 해결하였습니다! 저와 똑같은 문제 경험하고 계시는 분은 아래의 코드를 참고 해주세요. 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(); }

좋아요수
0
댓글수
2
조회수
483