사용하던 노트북을 바꾸고 다시 메타마스크를 설치하고 remix 에서 코드를 작성했는데... smart contract 배포가 안된다. 메타마스크가 연결이 되지 않아서 였는데 사이트를 연결해주면 해결된다.
No injected Web3 provider found. Make sure your provider (e.g. MetaMask) is active and running (when recently activated you may have to reload the page).


(1) 메타마스크가 사이트와 연결되어 있지 않은 경우

사이트 데이터를 읽고 변경할 수 있음에서 모든 사이트에서 읽을 수 있도록 변경해준다.
(2) remix 사이트를 http 가 아니라 https 로 접속한 경우

You are using an `https` connection. Please switch to `http` if you are using Remix against an `http Web3 provider` or allow Mixed Content in your browser.
https 에서 s 를 지우고 접속해서 메타마스크를 연결하면 된다.
'Blockchain' 카테고리의 다른 글
(2) Truffle :: blockchain 채굴하기 (windows) (0) | 2021.05.21 |
---|---|
(1) Truffle :: DApp 개발환경 구성하기 (windows) _ 설치 (0) | 2021.05.15 |
remix solidity struct 사용 코드 (0) | 2021.04.30 |
solidity 에서 array 사용한 코드 (0) | 2021.04.30 |
remix 에서 작성한 solidity 코드 배포하기 (0) | 2021.04.30 |